Merge pull request #275 from presenton/fix/llm-tool-call-parser-issue
fix(fastapi): llm client issue where tool call arguments is None while streaming (openai)
This commit is contained in:
commit
f971243ef1
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