Skip to content

Fix ChatGPT subscription model requests - #7075

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/chatgpt-subscription-models
Aug 25, 2026
Merged

Fix ChatGPT subscription model requests#7075
ComputelessComputer merged 1 commit into
mainfrom
fix/chatgpt-subscription-models

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Load models from the Codex catalog and adapt generate calls to its stream-only Responses endpoint.


Note

Medium Risk
Changes subscription ChatGPT request and model-selection paths; mistakes could break OAuth ChatGPT chat or show wrong models, but scope is limited to that provider and includes tests.

Overview
Fixes ChatGPT subscription integration by aligning model discovery with the Codex catalog and routing non-streaming generate paths through the Responses API’s stream-only behavior.

Model listing now calls the Codex models endpoint with a fixed client_version, parses slug / visibility instead of the old OpenAI-style data.id shape, drops hidden models, and clears the hardcoded ChatGPT fallback list so failed discovery returns an empty list instead of stale model IDs.

Generation adds streamOnlyGenerationMiddleware, applied only for OAuth ChatGPT in useLLMConnection: doGenerate is implemented by consuming doStream and assembling text, reasoning, tool calls, usage, and errors into a single result. Unit tests cover stream aggregation and catalog parsing.

Reviewed by Cursor Bugbot for commit c500c3d. Bugbot is set up for automated code reviews on this repo. Configure here.

Load models from the Codex catalog and adapt generate calls to its stream-only Responses endpoint.
@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for anarlog canceled.

Name Link
🔨 Latest commit c500c3d
🔍 Latest deploy log https://app.netlify.com/projects/anarlog/deploys/6a8cde6f1c34e00009a0973a

@ComputelessComputer
ComputelessComputer merged commit 21817ea into main Aug 25, 2026
17 checks passed
@ComputelessComputer
ComputelessComputer deleted the fix/chatgpt-subscription-models branch August 25, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant