fix: gemini tool call bug

This commit is contained in:
zhayujie
2026-03-11 02:04:09 +08:00
parent e8d4f7dc4f
commit eda82bac92
2 changed files with 11 additions and 0 deletions

View File

@@ -294,6 +294,9 @@ class OpenAICompatibleBot:
if tool_calls:
openai_msg["tool_calls"] = tool_calls
if msg.get("_gemini_raw_parts"):
openai_msg["_gemini_raw_parts"] = msg["_gemini_raw_parts"]
openai_messages.append(openai_msg)
else:
# Other list content, keep as is