Skip to content

feat(openai-compat): add thoughtSignature handling for google models#11745

Merged
aayush-kapoor merged 7 commits into
mainfrom
aayush/thought-sign-oaicompat
Jan 12, 2026
Merged

feat(openai-compat): add thoughtSignature handling for google models#11745
aayush-kapoor merged 7 commits into
mainfrom
aayush/thought-sign-oaicompat

Conversation

@aayush-kapoor

@aayush-kapoor aayush-kapoor commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

Background

feature request #11590

Summary

added handling for thought signatures returned by google models by preserving them in the providerMetadata through the message flow

Manual Verification

Tested for multiturn examples in:

  • example/ai-core/src/generate-text/openai-compatible-google-thought-signatures.ts
  • example/ai-core/src/stream-text/openai-compatible-google-thought-signatures.ts

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Fixes #11590

@ghost ghost added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/community labels Jan 12, 2026

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Missing implementation for parsing and propagating Google thought signatures in streaming tool call responses

Fix on Vercel

@aayush-kapoor
aayush-kapoor merged commit cd7bb0e into main Jan 12, 2026
18 checks passed
@aayush-kapoor
aayush-kapoor deleted the aayush/thought-sign-oaicompat branch January 12, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/community task-merge-tracking-done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Gemini Though Signatures for OpenAI compatibility

3 participants