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:
Saurav Niraula 2025-09-09 04:09:48 +05:45 committed by GitHub
commit f971243ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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":