Skip to content

Fix OpenAI OAuth context window detection#499

Open
thanosapollo wants to merge 1 commit into
editor-code-assistant:masterfrom
thanosapollo:master
Open

Fix OpenAI OAuth context window detection#499
thanosapollo wants to merge 1 commit into
editor-code-assistant:masterfrom
thanosapollo:master

Conversation

@thanosapollo

Copy link
Copy Markdown

OpenAI OAuth uses the ChatGPT Codex backend, whose context
windows differ from the direct OpenAI API catalog.

ECA was resolving OAuth model limits like direct API-key auth, so
openai/gpt-5.5 reported the direct API's 1.05M context window
instead of the Codex OAuth 272k limit.

This resolves OAuth limits from Codex /models first, with known
Codex OAuth caps as fallback. API-key OpenAI behavior is unchanged.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

OpenAI OAuth requests use the ChatGPT Codex backend, whose model
context windows differ from the direct OpenAI API catalog. Resolve
OAuth model limits from Codex /models first and fall back to known
Codex OAuth caps so gpt-5.5 reports 272k instead of the direct API's
1.05M window.

Assisted by: eca-agent <git@eca.dev>
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