[PR #10092] fix: add xhigh reasoning effort for GitHub Copilot GPT-5 models #13332

Closed
opened 2026-02-16 18:18:11 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10092

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10092 **State:** closed **Merged:** Yes --- ## 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
yindo added the pull-request label 2026-02-16 18:18:11 -05:00
yindo closed this issue 2026-02-16 18:18:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13332