Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: disable parallel tool calling (#1570)

Sarah Wooders4ad825c6db8e
diff --git a/memgpt/llm_api/openai.py b/memgpt/llm_api/openai.py
index 279fc8740..e7001d63e 100644
--- a/memgpt/llm_api/openai.py
+++ b/memgpt/llm_api/openai.py
@@ -370,6 +370,7 @@ def openai_chat_completions_request(
url = smart_urljoin(url, "chat/completions")
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {api_key}"}
data = chat_completion_request.model_dump(exclude_none=True)
+ data["parallel_tool_calls"] = False
printd("Request:\n", json.dumps(data, indent=2))