Thanks to visit codestin.com
Credit goes to github.com

Skip to content

api: preserve thought_signature in ToolCall for Gemini 3 tool calling#14568

Open
ssam18 wants to merge 1 commit intoollama:mainfrom
ssam18:fix/gemini3-thought-signature-tool-calls
Open

api: preserve thought_signature in ToolCall for Gemini 3 tool calling#14568
ssam18 wants to merge 1 commit intoollama:mainfrom
ssam18:fix/gemini3-thought-signature-tool-calls

Conversation

@ssam18
Copy link
Contributor

@ssam18 ssam18 commented Mar 3, 2026

Gemini 3 includes a thought_signature on every function call that has to be sent back with the tool result, otherwise the API throws a 400. This adds the field to api.ToolCall and the OpenAI compat layer so it survives the round-trip without getting silently dropped. Fixes the issue #14567.

… Gemini 3 attaches an opaque thought_signature to every function call that

must be echoed back verbatim in the next turn. Without this field the API returns 400 "Function call is missing a thought_signature". Add the field
to api.ToolCall and the OpenAI compat layer so it survives the full request/response round-trip.
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