mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-14 22:13:41 +08:00
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:
@@ -81,9 +81,11 @@ class OpenAIProvider(LLMProvider):
|
|||||||
)
|
)
|
||||||
for tc in choice.message.tool_calls
|
for tc in choice.message.tool_calls
|
||||||
]
|
]
|
||||||
|
ToolCall(
|
||||||
return LLMOutput(
|
id=tc.id or "",
|
||||||
content=choice.message.content or "",
|
name=tc.function.name,
|
||||||
|
arguments={} if not tc.function.arguments else json.loads(tc.function.arguments),
|
||||||
|
)
|
||||||
tool_calls=tool_calls,
|
tool_calls=tool_calls,
|
||||||
model=response.model,
|
model=response.model,
|
||||||
usage={
|
usage={
|
||||||
|
|||||||
Reference in New Issue
Block a user