mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: summarization bug (#1476)
This commit is contained in:
parent
4b2b1c8bf3
commit
f28f73645c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user