Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: pass allow parallel tool calls in LLM client (#12718)

shamooncc918bae5fc5
diff --git a/src/paperless_ai/client.py b/src/paperless_ai/client.py
index 8a653baef..ce1874461 100644
--- a/src/paperless_ai/client.py
+++ b/src/paperless_ai/client.py
@@ -73,6 +73,7 @@ class AIClient:
tools=[tool],
user_msg=user_msg,
chat_history=[],
+ allow_parallel_tool_calls=True,
)
tool_calls = self.llm.get_tool_calls_from_response(
result,