Description
When using codestral, pixtral, or mixtral via a custom @ai-sdk/openai-compatible endpoint, tool call IDs are not normalized to Mistral's required 9-character alphanumeric format, causing API errors. PR #2440 added this for @ai-sdk/mistral and devstral but missed these three.
Plugins
none
OpenCode version
v1.2.21, dev
Steps to reproduce
- Configure a custom provider in
opencode.json using @ai-sdk/openai-compatible with a model ID containing codestral, pixtral, or mixtral
- Start a session and trigger a tool call
- Observe API error due to invalid tool call ID format
Screenshot and/or share link
No response
Operating System
Debian Linux (Trixie, 64-bit)
Terminal
PuTTY
Description
When using codestral, pixtral, or mixtral via a custom
@ai-sdk/openai-compatibleendpoint, tool call IDs are not normalized to Mistral's required 9-character alphanumeric format, causing API errors. PR #2440 added this for@ai-sdk/mistraland devstral but missed these three.Plugins
none
OpenCode version
v1.2.21, dev
Steps to reproduce
opencode.jsonusing@ai-sdk/openai-compatiblewith a model ID containingcodestral,pixtral, ormixtralScreenshot and/or share link
No response
Operating System
Debian Linux (Trixie, 64-bit)
Terminal
PuTTY