anomalyco / anomalyco/models.dev

Feature: add a separate OpenAI Codex provider for OAuth-specific model limits

Open
#3,183 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.9k
Forks
1.7k
Avg merge
3h 21m
Merged PRs (30d)
873

Description

Proposal

Add a separate OpenAI Codex provider for models served through ChatGPT/Codex OAuth.

The main openai provider should continue describing direct API access. The Codex provider can inherit shared model metadata with base_model and override the limits that differ on the Codex backend. Harnesses such as OpenCode can then select the correct provider when Codex OAuth is active.

This has moved beyond a one-time client workaround: four current Codex models now have different limits from their direct API definitions.

Evidence
Models Direct OpenAI API Codex OAuth
gpt-5.5 1,050K context / 922K input / 128K output 400K context / 272K input / 128K output
gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna 1,050K context / 922K input / 128K output 500K context / 372K input / 128K output

The Codex values can be independently checked with codex debug models. GPT-5.5 reports 272000; all three GPT-5.6 models report 372000.

Related

Contributor guide

No contributing guide indexed for this repository

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

Locate the existing OpenAI provider definitions and shared model metadata, then compare their structure with the proposal. Use codex debug models to verify the OAuth limits, and consider the work complete when a separate Codex provider can inherit the shared metadata while exposing the four listed models' distinct limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.