Skip to content

Conversation

@cyhhao
Copy link

@cyhhao cyhhao commented Jan 10, 2026

Background

OpenAI’s official Codex CLI ships gpt-5.2-codex as a first-class model preset (see model_presets.rs) and uses it as the default ChatGPT/Codex model (see manager.rs). However, models.dev currently lacks this model entry.

Change

  • Add providers/openai/models/gpt-5.2-codex.toml
  • Align specs with gpt-5.2 (context window, pricing, knowledge date, etc.)

Notes

  • In the Codex CLI preset list, gpt-5.2-codex is marked supported_in_api: false, so this appears to be a Codex/ChatGPT channel model rather than a public API-key model. If the fields should differ, I’m happy to adjust.

Verification

  • bun validate

@cyhhao cyhhao changed the title feat: 添加 gpt-5.2-codex 模型 feat: add gpt-5.2-codex model Jan 10, 2026
@rekram1-node
Copy link
Contributor

since it isnt available via api it doesnt mae sense to add here rn

@cyhhao
Copy link
Author

cyhhao commented Jan 11, 2026

@rekram1-node But OpenCode has just supported Codex's OAuth authentication. If we don't add it, how can we use this model in this mode?

@rekram1-node
Copy link
Contributor

@cyhhao see here: https://github.com/anomalyco/opencode/blob/b81eca4ebc73279ab2c16fb1ca3291449501729d/packages/opencode/src/plugin/codex.ts#L364

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.

2 participants