Skip to content

Conversation

@Arthur742Ramos
Copy link

@Arthur742Ramos Arthur742Ramos commented Jan 22, 2026

Summary

  • Add xhigh reasoning effort variant for GitHub Copilot provider for GPT-5.1 codex and GPT-5.2 models
  • Previously only low, medium, high were available; now xhigh is included for supported models

Changes

  • Updated @ai-sdk/github-copilot case in ProviderTransform.variants() to include xhigh for:
    • Models containing 5.1-codex in the ID
    • Models containing 5.2 in the ID
  • Added tests for GitHub Copilot variant behavior

Models affected

Model Reasoning efforts
gpt-5.1-codex-max low, medium, high, xhigh
gpt-5.2 low, medium, high, xhigh
gpt-5.2-codex low, medium, high, xhigh
Other models low, medium, high

Fixes #9818

@github-actions
Copy link
Contributor

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

No duplicate PRs found

@Arthur742Ramos Arthur742Ramos force-pushed the fix/copilot-xhigh-reasoning-effort branch 2 times, most recently from ede21c6 to e96a5ec Compare January 22, 2026 19:37
@Arthur742Ramos Arthur742Ramos force-pushed the fix/copilot-xhigh-reasoning-effort branch 3 times, most recently from aa3c697 to 7fc245b Compare January 22, 2026 19:57
Add xhigh reasoning effort variant for GitHub Copilot provider when using:
- gpt-5.1-codex-* models
- gpt-5.2 models
- gpt-5.2-codex models

Fixes anomalyco#9818
@Arthur742Ramos Arthur742Ramos force-pushed the fix/copilot-xhigh-reasoning-effort branch from 7fc245b to 980078b Compare January 22, 2026 19:58
@dkraemerwork
Copy link

Yeah I had to change my opencode.json manually to get all variants. Should be there per default if the provider exists

@AdrianAcala
Copy link

AdrianAcala commented Jan 22, 2026

Yeah I had to change my opencode.json manually to get all variants. Should be there per default if the provider exists

Thank you! I didn't know this was possible until I read this thread. For anyone else that ran into this, here's how to add to your opencode.json file:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "github-copilot/gpt-5.2-codex",
  "provider": {
    "github-copilot": {
      "models": {
        "gpt-5.2-codex": {
          "variants": {
            "xhigh": {
              "reasoningEffort": "xhigh"
            }
          }
        }
      }
    }
  }
}

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.

xhigh not available for GPT-5.2 or GPT-5.2-Codex via Github CoPilot

3 participants