Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,14 @@ async def get_chat_completions(
# Emit tool calls event (fire-and-forget)
if tool_calls_list:
for tool_call in tool_calls_list:
arguements = json.loads(tool_call["function"]["arguments"])
arguments = json.loads(tool_call["function"]["arguments"])
self.ten_env.log_info("Emitting a tool call")
yield LLMResponseToolCall(
response_id=last_chat_completion.id,
id=last_chat_completion.id,
tool_call_id=tool_call["id"],
name=tool_call["function"]["name"],
arguments=arguements,
arguments=arguments,
created=last_chat_completion.created,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ async def get_chat_completions(
# Emit tool calls event (fire-and-forget)
if tool_calls_list:
for tool_call in tool_calls_list:
arguements = json.loads(tool_call["function"]["arguments"])
arguments = json.loads(tool_call["function"]["arguments"])
self.ten_env.log_info(
f"Tool call22: {choice.delta.model_dump_json()}"
)
Expand All @@ -447,7 +447,7 @@ async def get_chat_completions(
id=last_chat_completion.id,
tool_call_id=tool_call["id"],
name=tool_call["function"]["name"],
arguments=arguements,
arguments=arguments,
created=last_chat_completion.created,
)

Expand Down
Loading