Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor IDE (AI features → Apply / patching, and any flow that uses the Responses API style)
Steps to Reproduce
- In Azure OpenAI / Azure AI Foundry, deploy a chat-capable model (example: gpt-4o, gpt-5.x-chat) and copy:
- Resource endpoint (e.g. https://.openai.azure.com)
- API key
- Deployment name (if applicable)
- In Cursor → Settings → Models / API Keys, configure a provider so Cursor can use your Azure deployment (BYOK).
- Use the Azure endpoint as the Base URL and your Azure key.
- Verify normal usage works:
- Open a file / repo
- Use chat/composer/generation features (anything not Apply) → works
- Now trigger Apply (patching) from an AI suggestion (the “Apply” button / patch flow).
- Observe the failure:
- Request attempts to hit an OpenAI-style path like /v1/responses
- Azure returns 404 / Resource not found (or Cursor may hang/crash)
This aligns with other Cursor reports where Cursor sends Responses API requests to the wrong endpoint/path, producing 404s.
Expected Behavior
When using Azure OpenAI as the backend, Cursor’s Apply (patching) should call Azure’s Responses API using Azure’s required routing, e.g.: POST https://{endpoint}/openai/v1/responses?api-version=preview
…instead of calling POST {endpoint}/v1/responses (which causes 404s on Azure).
Result: Apply should successfully generate and apply the patch, just like the other Cursor actions that already work with the same model configuration.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.2.44
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0
For AI issues: which model did you use?
GPT 5.2 Chat
Does this stop you from using Cursor
Yes - Cursor is unusable