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
400 Bad Request for every openrouter prompt for 0.2.22 #842
@openrouter/ai-sdk-provider does not work with ai sdk v5 which we use. remove the npm field you don't need it. also we added devstral to models.dev so you can probably get rid of the whole config
@openrouter/ai-sdk-provider does not work with ai sdk v5 which we use. remove the npm field you don't need it. also we added devstral to models.dev so you can probably get rid of the whole config
Is it only available via the Mistral provider?
Edit: nvm, I use this setup for Devstral Openrouter and it works
Activity
[-]400 Bad Request for every openrouter prompt[/-][+]400 Bad Request for every openrouter prompt for 0.2.22[/+]Pranav-Official commentedon Jul 10, 2025
same issue here... any idea anyone?
DenzelVH commentedon Jul 10, 2025
Same issue

The issue is gone when I disable my
config.jsonfile + removing~/.cache/opencodefolderMy config.json
{ "$schema": "https://opencode.ai/config.json", "provider": { "openrouter": { "npm": "@openrouter/ai-sdk-provider", "name": "OpenRouter", "options": {}, "models": { "mistralai/devstral-medium": { "name": "Mistral: Devstral Medium" }, "mistralai/devstral-small": { "name": "Mistral: Devstral Small 1.1" }, "inception/mercury": { "name": "Inception: Mercury" } } } } }eaSyMaxSU commentedon Jul 10, 2025
Still having this issue after removing config.json and clearing cache/opencode.
damianpdr commentedon Jul 10, 2025
same issue on my side
thdxr commentedon Jul 10, 2025
@openrouter/ai-sdk-provider does not work with ai sdk v5 which we use. remove the
npmfield you don't need it. also we added devstral to models.dev so you can probably get rid of the whole configeaSyMaxSU commentedon Jul 11, 2025
Removing the config do not solve the issue for me.
DenzelVH commentedon Jul 11, 2025
Is it only available via the Mistral provider?
Edit: nvm, I use this setup for Devstral Openrouter and it works
{ "$schema": "https://opencode.ai/config.json", "provider": { "openrouter": { "name": "OpenRouter", "options": {}, "models": { "mistralai/devstral-medium": { "name": "Devstral Medium", "attachment": false, "reasoning": false, "temperature": true, "tool_call": true, "release_date": "2025-07-10", "cost": { "input": 0.4, "output": 2 }, "limit": { "context": 128000, "output": 128000 } }, "mistralai/devstral-small": { "name": "Devstral Small", "attachment": false, "reasoning": false, "temperature": true, "tool_call": true, "release_date": "2025-05-07", "cost": { "input": 0.1, "output": 0.3 }, "limit": { "context": 128000, "output": 128000 } } } } } }fix(observer): improve Windows compatibility for temp files and Haiku…
chore: disable top landing paper grain (anomalyco#842)