Skip to content

Commit

Permalink
fix missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy committed Feb 1, 2025
1 parent 961c448 commit 45277d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/canary/sdk/openai/test_chat_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,15 @@ def from_message(
for tool_call in obj.get("tool_calls") or ():
content.append(
ToolCallContentPart(
type="tool_call",
tool_call=ToolCallContentValue(
tool_call_id=tool_call["id"],
tool_call=ToolCallFunction(
type="function",
name=tool_call["function"]["name"],
arguments=tool_call["function"]["arguments"],
),
)
),
)
)
return PromptMessage(
Expand Down

0 comments on commit 45277d8

Please sign in to comment.