Openrouter Fails when Using Anthropic Models

I am using openrouter by overriding OpenAI Base URL, like this:

When I use an Anthropic model, I get this error:

This does not happen when I use another provider like OpenAI.

From the error message above, “Problem reaching Anthropic”, it appears that the request is NOT sent to Openrouter, but to Anthropic. The error also looks like it is sent from Anthropic.

This bug is related to the following post, but more specific to Anthropic only:

This is my Cursor version:
Version: 0.36.2
VSCode Version: 1.89.1
Commit: 9a6d781540ba2732cf26551c07629e68121c6580
Date: 2024-07-07T21:57:45.723Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.19045

2 Likes

I encountered the same error as well.

I have the same issue

1 Like

I encountered the same error as well.

版本: 0.39.5
提交: 1.91.1
日期: 274e2e5d572bd0b99449183635a0f94c7b9f54d0
Electron: 2024-08-14T15:49:16.270Z
ElectronBuildId: 29.4.0
Chromium: undefined
Node.js: 122.0.6261.156
V8: 20.9.0
OS: 12.2.281.27-electron.0

Yes, this is a known bug: