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,