fix(fastapi): llm client issue where tool call arguments is None while streaming (openai)
This commit is contained in:
parent
64daae1065
commit
762ac9e8b1
1 changed files with 2 additions and 2 deletions
|
|
@ -886,7 +886,7 @@ class LLMClient:
|
|||
current_id = tool_id or current_id
|
||||
if current_arguments is None:
|
||||
current_arguments = tool_arguments
|
||||
else:
|
||||
elif tool_arguments:
|
||||
current_arguments += tool_arguments
|
||||
|
||||
if current_id is not None:
|
||||
|
|
@ -1233,7 +1233,7 @@ class LLMClient:
|
|||
current_id = tool_id or current_id
|
||||
if current_arguments is None:
|
||||
current_arguments = tool_arguments
|
||||
else:
|
||||
elif tool_arguments:
|
||||
current_arguments += tool_arguments
|
||||
|
||||
if current_name == "ResponseSchema":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue