Repository navigation
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR gates the Claude Code “xhigh” reasoning effort value behind an explicit per-model capability flag in the Claude provider registry, so older Claude models still fall back to high while newer supported models preserve xhigh.
Changes:
- Added
supportsXHighEffortto the sharedRegistryModeltype and Claude model entries. - Updated Claude Code compatible effort resolution to preserve
xhighonly when the selected Claude model supports it. - Extended unit tests to cover both the preserve-
xhighand fallback-to-highbranches.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/unit/claude-code-compatible-request.test.ts | Adds assertions for the new registry flag and verifies effort branching for supported vs unsupported models. |
| tests/unit/cc-compatible-provider.test.ts | Adds an integration-style unit test ensuring buildClaudeCodeCompatibleRequest keeps xhigh on a supported Claude model. |
| open-sse/services/claudeCodeCompatible.ts | Introduces a registry-backed capability check and updates effort resolution to conditionally allow xhigh. |
| open-sse/config/providerRegistry.ts | Extends the model registry type and annotates Claude models with supportsXHighEffort. |
Comment on lines
+50
to
+54
| const CLAUDE_XHIGH_SUPPORTED_MODELS = new Set( | ||
| getModelsByProviderId("claude") | ||
| .filter((model) => model.supportsXHighEffort) | ||
| .map((model) => model.id) | ||
| ); |
diegosouzapw
added a commit
that referenced
this pull request
Apr 17, 2026
Collaborator
|
Thanks for this contribution! 🎉 The xhigh reasoning tier support has been integrated into the |
Merged
This was referenced Apr 30, 2026
Merged
Merged
Merged
Poid-ZA
pushed a commit
to Poid-ZA/OmniRoute
that referenced
this pull request
Aug 5, 2026
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xhigheffort, so requests should preservexhighwhen the selected Claude model exposes that capabilitysupportsXHighEffortflag to the shared Claude model registry and route both Claude OAuth and Claude Code compatible effort mapping through ithighfor older Claude models and extend tests for both supported and unsupported branchesTesting