OpenAI API Key directs to claude model

Hi, thanks for reporting an issue with Cursor.

Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.

If you have done so, please check this box.
on

Describe the Bug

When trying to set the openai api key, i get an error, then for testing that it asks me to do the following curl, which directs to a claude model and is obviously wrong -
curl https://api.openai.com/v1/chat/completions -H “Content-Type: application/json” -H "Authorization: <my_key> -d ‘{
“messages”: [
{
“role”: “system”,
“content”: “You are a test assistant.”
},
{
“role”: “user”,
“content”: “Testing. Just say hi and nothing else.”
}
],
“model”: “claude-3.5-sonnet”
}’

Steps to Reproduce

Entering a VALID openai api key

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z (1 wk ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Additional Information

Nope

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, try disabling all Claude models, that should help.

Thanks!