Skip to content

Commit

Permalink
fix: also changing default
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Dec 23, 2024
1 parent bf6ac92 commit 816471a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions letta/llm_api/llm_api_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create(
user_id: Optional[str] = None, # option UUID to associate request with
functions: Optional[list] = None,
functions_python: Optional[dict] = None,
function_call: str = "auto",
function_call: Optional[str] = None, # see: https://platform.openai.com/docs/api-reference/chat/create#chat-create-tool_choice
# hint
first_message: bool = False,
force_tool_call: Optional[str] = None, # Force a specific tool to be called
Expand Down Expand Up @@ -255,12 +255,7 @@ def create(

tool_call = None
if force_tool_call is not None:
tool_call = {
"type": "function",
"function": {
"name": force_tool_call
}
}
tool_call = {"type": "function", "function": {"name": force_tool_call}}
assert functions is not None

return anthropic_chat_completions_request(
Expand Down

0 comments on commit 816471a

Please sign in to comment.