eca icon indicating copy to clipboard operation
eca copied to clipboard

Fix OpenAI OAuth context window detection

Open thanosapollo opened this issue 5 months ago • 0 comments

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.

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

thanosapollo avatar Jun 13 '26 17:06 thanosapollo