Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
as title described
Steps to Reproduce
How to reproduce:
- Fill in your OpenAI API key.
- Switch on the Override OpenAI Base URL, but set it to: https://api.openai.com/v1.
- Ask a question to GPT-5.1-Codex.
And you’ll see the following error:
Request failed with status code 404: {
"error": {
"message": "This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?",
"type": "invalid_request_error",
"param": "model",
"code": null
}
}
And if you put your own override URL in and dump the request, you’ll see it’s actually a Response API request, but it’s sent to your chat completion API endpoint.
Expected Behavior
Yes, it’s definitely good to use the response API as it’s slightly smarter, but please don’t send it to the chat completion endpoint…
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.1.39
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
For AI issues: which model did you use?
GPT-5.1-Codex
Does this stop you from using Cursor
No - Cursor works, but with this issue