Skip to content

feat: add Gemini 3 Pro thought signature support#93

Open
acodercat wants to merge 1 commit intosierra-research:mainfrom
acodercat:feature/gemini3-thought-signatures
Open

feat: add Gemini 3 Pro thought signature support#93
acodercat wants to merge 1 commit intosierra-research:mainfrom
acodercat:feature/gemini3-thought-signatures

Conversation

@acodercat
Copy link

Add Gemini 3 Pro thought signature support

Gemini 3 Pro enforces stricter validation on thought signatures for multi-turn function calling. This PR adds support for preserving and returning thought signatures to maintain reasoning context across conversation turns.

Without this fix, requests to Gemini 3 Pro return a 400 error when required thought signatures are missing.

References:

@victorb-sierra
Copy link
Collaborator

Thanks for this PR. Not a bad idea to use the raw_data directly. Only worry is that since message object fields are mutable we could end up with a discrepancy between message content and raw content. We can make the behavior more explicit by forcing the choice of using raw_data or not

@acodercat
Copy link
Author

Thanks for this PR. Not a bad idea to use the raw_data directly. Only worry is that since message object fields are mutable we could end up with a discrepancy between message content and raw content. We can make the behavior more explicit by forcing the choice of using raw_data or not

Thinks. It wroks well.

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.

2 participants