fix(fastapi): llm client issue where tool call arguments is None while streaming (openai)

This commit is contained in:
sauravniraula 2025-09-08 00:30:16 +05:45
parent 64daae1065
commit 762ac9e8b1
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326

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