continue-custom/core/config
Dallin Romney 15ea93dae0
feat: add useResponsesApi option to opt out of Responses API (#11809)
* feat: add `useResponsesApi` option to allow opting out of OpenAI Responses API

Add a `useResponsesApi` config option that, when set to false, forces
o-series and gpt-5 models to use /chat/completions instead of /responses.
This helps users whose organizations are not verified avoid "organization
must be verified" errors related to reasoning summaries and streaming.

The option gates both code paths where the Responses API is selected:
- `canUseOpenAIResponses()` in BaseLLM (native path)
- `shouldUseResponsesEndpoint()` in the OpenAI adapter

Closes #11772
Related: #8209, #7129

* feat: suggest `useResponsesApi: false` in org verification error messages

Update error detection to also catch "organization must be verified to
stream" errors (in addition to reasoning summaries), and update the
error message to suggest adding `useResponsesApi: false` to model config
as a workaround.

* fix: improve org verification error message copy

* fix: add useResponsesApi to LLMOptions in index.d.ts

The actual type definitions used by tsc are in core/index.d.ts, not in
the string template in config/types.ts.

* fix: also check provider name when detecting org verification errors

The error message from OpenAI's API doesn't always contain the word
"openai" — check the provider name from the model config as well.

* feat: detect missing authentication header error and suggest adding apiKey

* fix: handle missing auth error directly in 401 dialog block

The 401 status code handler in StreamError.tsx renders before the
customErrorMessage check, so detect the missing authentication error
inline within the 401 block.

* Revert "fix: handle missing auth error directly in 401 dialog block"

This reverts commit 0053957d2df7c64ddea2279982f5e07e2cee1020.

* style: fix prettier formatting in index.d.ts

* style: revert unrelated prettier reformatting in index.d.ts

* fix: handle undefined providerName in error analysis

* fix: use YAML-style formatting in useResponsesApi suggestion
2026-03-25 16:09:46 -07:00
..
json fix: move rc loading to separate file, fix core imports issue 2025-07-21 17:31:35 +02:00
markdown support relative path for workspace dirs 2026-01-15 19:00:09 +05:30
profile fix: use config.yaml name for default Local Config profile (#11110) 2026-03-24 13:37:52 -07:00
workspace Remove Gemini 2.0 Flash from defaults and update Claude defaults to 4.6 (#11782) 2026-03-24 17:03:52 -07:00
yaml fix: respect contextLength from YAML model config (#11807) 2026-03-25 12:26:52 -07:00
ConfigHandler.ts fix: "No chat model selected" error on startup (#11672) 2026-03-24 13:05:10 -07:00
ConfigHandler.vitest.ts feat: Respect Org Policies (#7087) 2025-08-11 19:20:07 -07:00
createNewAssistantFile.ts Rename "agent" terminology to "config" throughout the codebase (#8229) 2025-10-13 22:25:42 -07:00
default.ts Rename "agent" terminology to "config" throughout the codebase (#8229) 2025-10-13 22:25:42 -07:00
getWorkspaceContinueRuleDotFiles.ts ruleFile -> sourceFile 2025-09-29 16:05:05 -07:00
load.ts fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-13 12:52:05 -07:00
loadContextProviders.ts fix: unknown context provider file 2025-08-21 18:04:18 -07:00
loadContextProviders.vitest.ts fix: exclude problems and terminal on jetbrains 2025-08-18 18:22:13 -07:00
loadLocalAssistants.ts feat: better settings page and open settings fixes 2025-09-29 15:59:46 -07:00
loadLocalAssistants.vitest.ts fix: HOTFIX local assistant loading (#7354) 2025-08-25 11:52:07 -07:00
migrateSharedConfig.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
onboarding.ts fix(gemini): update model catalog for retired/new Gemini models (#11793) 2026-03-24 20:22:47 -07:00
ProfileLifecycleManager.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
selectedModels.ts feat: remove models property 2025-04-08 19:28:48 -07:00
sharedConfig.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
types.ts feat: add useResponsesApi option to opt out of Responses API (#11809) 2026-03-25 16:09:46 -07:00
usesFreeTrialApiKey.ts fix: only show free trial dialog for freetrial secrettype 2025-10-14 19:29:07 +05:30
usesFreeTrialApiKey.vitest.ts fix more lints 2026-01-07 20:40:03 +05:30
util.ts fix: remove add model system message 2025-08-08 11:42:06 +05:30
util.vitest.ts rename to vitest 2025-06-23 18:46:59 +05:30
validation.ts feat: insert prompt into input on click 2025-03-20 14:45:57 -07:00