continuedev / continuedev/continue

Allow disabling Responses API for OpenAI-compatible servers with gpt-5-like model aliases

Open
#12,995 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:configuration area:integration kind:enhancement
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Relevant environment info
- OS: Linux CachyOS
- Continue version: 2.0
- IDE version: Rider 2026.1.4
- Model: openai
- config:
  
name: Local Config
version: 1.0.0
schema: v1

models:
  - name: gpt-5.5
    provider: openai
    model: gpt-5.5
    apiBase: https://chatgpt.myCompany.de/api/
    apiKey: xxxx
    useLegacyCompletionsEndpoint: false
 
Description
Problem

When using the openai provider with a custom OpenAI-compatible API and a model named gpt-5.5, Continue automatically uses the Responses API endpoint:

POST /responses

This fails because the backend only supports OpenAI-compatiblnAI provider forces /responses for custom gpt-5-like model names on OpenAI-compatible APIse Chat Completions:

POST /chat/completions

The model name is a custom/internal alias and does not imply that the backend supports the OpenAI Responses API.

Evidence

This fails:

curl -i https://chatgpt.myCompany.de/api/responses
-H "Authorization: Bearer xxx"
-H "Content-Type: application/json"
-d '{"model":"gpt-5.5","input":"Hallo"}'

Result:

HTTP 405 Method Not Allowed

This works:

curl -i https://chatgpt.myCompany.de/api/chat/completions
-H "Authorization: Bearer xxx"
-H "Content-Type: application/json"
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hallo"}]
}'

Result:

HTTP 200 OK

https://github.com/continuedev/continue/blob/d0a3c0b626b5bebc3bef4742eec05a0242be0bab/core/llm/llms/OpenAI.ts#L221-L223

Expected behavior

There should be a config option to disable the Responses API for OpenAI-compatible backends, e.g.

useResponsesApi: false

or Continue should only use /responses automatically for the official OpenAI API, not for arbitrary apiBase values.

useLegacyCompletionsEndpoint: false does not solve this, because the issue is not /completions vs /chat/completions, but /responses vs /chat/completions.

To reproduce

No response

Log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in core/llm/llms/OpenAI.ts at the linked lines where gpt-5-like model names select the Responses API. Trace how the OpenAI model configuration is read, then determine where an option such as useResponsesApi could be supported for custom apiBase values. Done means a custom OpenAI-compatible backend can use /chat/completions without being forced to /responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.