Update src/llm/providers/openai.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Anish Agrawal
2026-04-12 12:25:15 +05:30
committed by GitHub
parent a7f73576a9
commit 6691e7cc9e

View File

@@ -81,9 +81,11 @@ class OpenAIProvider(LLMProvider):
)
for tc in choice.message.tool_calls
]
return LLMOutput(
content=choice.message.content or "",
ToolCall(
id=tc.id or "",
name=tc.function.name,
arguments={} if not tc.function.arguments else json.loads(tc.function.arguments),
)
tool_calls=tool_calls,
model=response.model,
usage={