Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

Change gemini injection to tool part, consistent with other models now
Simplify prompt loading by replacing .txt files with .ts files

Tarquinen and others added 5 commits January 16, 2026 14:30
Instead of using text injection for Gemini models, use tool parts with
the 'skip_thought_signature_validator' bypass signature. This flows
through: ToolPart.metadata -> callProviderMetadata -> providerOptions
-> @ai-sdk/google reads providerOptions.google.thoughtSignature.

This provides consistent tool part injection across all providers while
avoiding Gemini's thought signature validation errors.
…e-bypass

feat: use thoughtSignature bypass for Gemini tool part injection
…ication

Move prompts into TypeScript files for simpler loading
@Tarquinen Tarquinen merged commit d386032 into master Jan 16, 2026
1 check passed
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