Skip to content

Conversation

@Alejandro-CSt
Copy link
Contributor

Fixes #7680

What does this PR do?

adds explicit variant handling for codex models:

  • gpt-*-codex["low", "medium", "high"]
  • gpt-5.2-codex["low", "medium", "high", "xhigh"]

Copilot AI review requested due to automatic review settings January 10, 2026 18:14
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes variant handling for OpenAI codex models by ensuring that codex models use a specific set of reasoning effort variants and explicitly excludes the "none" variant from gpt-5.2-codex.

Changes:

  • Adds early return logic for codex models to prevent them from receiving "none" or "minimal" variants based on release dates
  • gpt-*-codex models return ["low", "medium", "high"] variants
  • gpt-5.2-codex specifically returns ["low", "medium", "high", "xhigh"] variants

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rekram1-node rekram1-node merged commit 794c598 into anomalyco:dev Jan 10, 2026
9 of 10 checks passed
fwang pushed a commit to lifefloating/opencode that referenced this pull request Jan 10, 2026
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
athal7 pushed a commit to athal7/opencode that referenced this pull request Jan 13, 2026
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.

gpt-5.2-codex doesn't support 'none' variant

2 participants