Skip to content

fix(model-requirements): use provider-specific variants for github-copilot#1422

Open
ilarvne wants to merge 1 commit intocode-yeongyu:devfrom
ilarvne:fix/copilot-claude-variant
Open

fix(model-requirements): use provider-specific variants for github-copilot#1422
ilarvne wants to merge 1 commit intocode-yeongyu:devfrom
ilarvne:fix/copilot-claude-variant

Conversation

@ilarvne
Copy link

@ilarvne ilarvne commented Feb 3, 2026

Summary

GitHub Copilot's Claude models only support standard and thinking variants (fixed 4K thinking budget), not max which is supported by the direct Anthropic API. Similarly, Copilot's Gemini models support high but not max.

This PR splits fallback chain entries in model-requirements.ts so that provider-specific variants are used:

Provider Claude Variant Gemini Variant
anthropic max -
opencode max max
github-copilot thinking high
google - max

Changes

  • Split combined ["anthropic", "github-copilot", "opencode"] entries into separate provider-specific entries
  • Updated affected agents: sisyphus, oracle, prometheus, metis, momus
  • Updated affected categories: visual-engineering, ultrabrain, deep, artistry, unspecified-high
  • Added tests for github-copilot variant resolution

Testing

  • bun test src/shared/ passes (435 tests)
  • Verified variant resolution returns thinking for github-copilot Claude models
  • Verified variant resolution returns high for github-copilot Gemini models

Checklist

  • Code follows project conventions
  • bun run typecheck passes
  • Tests updated and passing
  • No version changes in package.json

Summary by cubic

Use provider-specific model variants so GitHub Copilot gets supported options for Claude and Gemini, preventing unsupported-variant errors. Improves reliability of model selection across agents and categories.

  • Bug Fixes
    • Split fallback chain entries by provider in model-requirements.ts.
    • Copilot: Claude uses thinking; Gemini uses high. Anthropic/Google/Opencode keep max where supported.
    • Updated agents and categories: sisyphus, oracle, prometheus, metis, momus; visual-engineering, ultrabrain, deep, artistry, unspecified-high.
    • Added tests for Copilot variant resolution; shared tests pass.

Written for commit 3f1808f. Summary will update on new commits.

…pilot

GitHub Copilot Claude models only support 'standard' and 'thinking' variants,
not 'max' which is supported by the direct Anthropic API. Similarly, Copilot
Gemini models support 'high' but not 'max'.

Split fallback chain entries so that:
- anthropic/opencode providers use 'max' variant for Claude models
- github-copilot provider uses 'thinking' variant for Claude models
- google/opencode providers use 'max' variant for Gemini models
- github-copilot provider uses 'high' variant for Gemini models

This prevents sending unsupported variant values to the Copilot API.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@ilarvne
Copy link
Author

ilarvne commented Feb 3, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Feb 3, 2026
leoisadev1 pushed a commit to leoisadev1/oh-my-opencode that referenced this pull request Feb 3, 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.

1 participant