From 12ea19507c41dac79c3a3a2ca66ebd825122e3eb Mon Sep 17 00:00:00 2001 From: Chris Weaver <25087905+Weves@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:08:45 -0700 Subject: [PATCH] Temp patch to remove multiple tool calls (#2720) --- backend/danswer/llm/answering/answer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/danswer/llm/answering/answer.py b/backend/danswer/llm/answering/answer.py index 922d757d3eb..5cddadeb2db 100644 --- a/backend/danswer/llm/answering/answer.py +++ b/backend/danswer/llm/answering/answer.py @@ -316,7 +316,9 @@ def _raw_output_for_explicit_tool_calling_llms( yield from self._process_llm_stream( prompt=prompt, - tools=[tool.tool_definition() for tool in self.tools], + # as of now, we don't support multiple tool calls in sequence, which is why + # we don't need to pass this in here + # tools=[tool.tool_definition() for tool in self.tools], ) return