Describe the Bug
I’m using the OpenRouter API but encountering the following error. I added the latest model, anthropic/claude-sonnet-4, but the cursor is still trying to use claude-sonnet-4-20250514, which makes no sense.
We encountered an issue when using your API key: the provider was unable to process your request. API Error: Request failed with status code 400: {"error":{"message":"claude-sonnet-4-20250514 is not a valid model ID","code":400},"user_id":"user_2f1CRrIvYAEw6todO9i9R09DMIy"}
Steps to Reproduce
enable openrouter
add anthropic/claude-sonnet-4 model
try with chat
Expected Behavior
should work as like as normal model
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.2 (Universal)
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:07:27.002Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0