Images break custom OpenAI endpoint config

Describe the Bug

When using a custom OpenAI key with a custom endpoint, uploading an image causes Cursor to revert to the standard endpoint (and fail) for that message and any other message in the same chat.

Steps to Reproduce

  1. Add a custom Open API key with a custom endpoint.
  2. Add an image to a message and send (or try using Figma’s MCP server which provides images).

Expected Behavior

The correct endpoint is used and a valid response is sent.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.2
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:08:52.104Z
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

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. We’ll investigate this.