mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-18 12:00:58 +02:00
Small fix for non tool calling LLMs
This commit is contained in:
parent
9b32003816
commit
9d5c4ad634
@ -287,7 +287,7 @@ class Answer:
|
|||||||
prompt_builder = AnswerPromptBuilder(self.message_history, self.llm.config)
|
prompt_builder = AnswerPromptBuilder(self.message_history, self.llm.config)
|
||||||
chosen_tool_and_args: tuple[Tool, dict] | None = None
|
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
|
# if we are forcing a tool, we don't need to check which tools to run
|
||||||
tool = next(
|
tool = next(
|
||||||
iter(
|
iter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user