mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
fix: gemini tool call bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user