Skip to content

Fix Gemini API thought_signature error in function calling#3144

Open
alsoGAMER wants to merge 1 commit intoend-4:mainfrom
alsoGAMER:fix/gemini-thought-signature
Open

Fix Gemini API thought_signature error in function calling#3144
alsoGAMER wants to merge 1 commit intoend-4:mainfrom
alsoGAMER:fix/gemini-thought-signature

Conversation

@alsoGAMER
Copy link
Copy Markdown

Thinking models (Gemini 2.5/3) require thoughtSignature to be sent back
as a sibling of functionCall in each part object. Three bugs fixed:

  • Preserve full functionCall object from API response instead of just name
  • Extract and send thoughtSignature from response parts
  • Persist thoughtSignature in chat save/load serialization

Thinking models (Gemini 2.5/3) require thoughtSignature to be sent back
as a sibling of functionCall in each part object. Three bugs fixed:

- Preserve full functionCall object from API response instead of just name
- Extract and send thoughtSignature from response parts
- Persist thoughtSignature in chat save/load serialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant