Skip to content

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

Chore: set tool_required to opena-like llm calls (#13025)

shamoonbcf5d2cffc09
diff --git a/src/paperless_ai/client.py b/src/paperless_ai/client.py
index 1614ceb8d..4aa57c95a 100644
--- a/src/paperless_ai/client.py
+++ b/src/paperless_ai/client.py
@@ -130,6 +130,7 @@ class AIClient:
user_msg=user_msg,
chat_history=[],
allow_parallel_tool_calls=True,
+ tool_required=True,
)
tool_calls = self.llm.get_tool_calls_from_response(
result,