You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google Provider - .enum: only allowed for STRING type #28397
I added the Google provider via the OpenCode MacOS Desktop app, with an API key gotten from Google's AI studio.
When sending a message (fresh chat), I always get this error for all Google provider models: GenerateContentRequest.tools[0].function_declarations[102].parameters.properties[operation].enum: only allowed for STRING type
I added the Google provider via the OpenCode MacOS Desktop app, with an API key gotten from Google's AI studio.
When sending a message (fresh chat), I always get this error for all Google provider models: GenerateContentRequest.tools[0].function_declarations[102].parameters.properties[operation].enum: only allowed for STRING type
Activity
github-actions commentedon May 19, 2026
This issue might be a duplicate of existing issues. Please check:
enum: only allowed for STRING type) caused bysanitizeGemininot handlinganyOf/constpatterns in MCP tool schemasgithub-actions commentedon Jul 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
riopratama7253-alt commentedon Jul 20, 2026