fix: openai function call

This commit is contained in:
zhayujie
2026-02-04 15:42:43 +08:00
parent cb303e6109
commit 158c87ab8b
2 changed files with 24 additions and 7 deletions

View File

@@ -339,6 +339,7 @@ class AgentStreamExecutor:
tool_result_block = {
"type": "tool_result",
"tool_use_id": tool_call["id"],
"name": tool_call["name"], # Add function name for Gemini compatibility
"content": result_content
}