fix(gemini): ensure extra_content is not empty before processing

This commit is contained in:
Soulter
2025-11-20 23:30:19 +08:00
parent 5d1e9de096
commit a7e9a7f30c

View File

@@ -299,7 +299,7 @@ class ProviderGoogleGenAI(Provider):
# we should set thought_signature back to part if exists
# for more info about thought_signature, see:
# https://ai.google.dev/gemini-api/docs/thought-signatures
if "extra_content" in tool:
if "extra_content" in tool and tool["extra_content"]:
ts_bs64 = (
tool["extra_content"]
.get("google", {})