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
Upgrade @ai-sdk/openai-compatible to 2.x to fix Gemini streaming tool_calls validation error #17902
Problem: When using custom OpenAI-compatible providers that route to Google Gemini, streaming tool_calls fail with
AI_TypeValidationError because Gemini's response omits the index field in tool_call chunks.
The bundled version in v1.2.27 is @ai-sdk/[email protected], which requires index: z.number() (strict).
Fix already exists: @ai-sdk/[email protected] changed it to index: z.number().nullish() with the comment //google
does not send index.
To verify current bundled version:
strings ~/.opencode/bin/opencode | grep -oE 'openai-compatible@[0-9]+.[0-9]+.[0-9]+' | sort -uV
Activity
rekram1-node commentedon May 13, 2026
we use:
"@ai-sdk/openai-compatible": "2.0.41",