Small fix for non tool calling LLMs

This commit is contained in:
Weves 2024-07-24 15:41:21 -07:00 committed by Chris Weaver
parent 9b32003816
commit 9d5c4ad634

View File

@ -287,7 +287,7 @@ class Answer:
prompt_builder = AnswerPromptBuilder(self.message_history, self.llm.config)
chosen_tool_and_args: tuple[Tool, dict] | None = None
if self.force_use_tool:
if self.force_use_tool.force_use:
# if we are forcing a tool, we don't need to check which tools to run
tool = next(
iter(