From a0ebfa0cd1d4ab9ca3aa9f19b7ee43ef0c3c3ee7 Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 31 Mar 2025 13:32:00 -0700 Subject: [PATCH] fix: summarization bug (#1476) --- letta/llm_api/llm_api_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/llm_api/llm_api_tools.py b/letta/llm_api/llm_api_tools.py index f489b873..fe941e03 100644 --- a/letta/llm_api/llm_api_tools.py +++ b/letta/llm_api/llm_api_tools.py @@ -340,7 +340,7 @@ def create( tool_choice = {"type": "any", "disable_parallel_tool_use": True} else: tool_choice = {"type": "auto", "disable_parallel_tool_use": True} - tools = [{"type": "function", "function": f} for f in functions] + tools = [{"type": "function", "function": f} for f in functions] if functions is not None else None chat_completion_request = ChatCompletionRequest( model=llm_config.model,