Skip to content

Support xhigh only on Claude models that expose it - #1356

Closed
rdself wants to merge 2 commits into
cheaper-inference:release/v3.6.8from
rdself:coder/claude-xhigh-v368
Closed

rdself wants to merge 2 commits into
cheaper-inference:release/v3.6.8from
rdself:coder/claude-xhigh-v368

Conversation

@rdself

@rdself rdself commented Apr 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • note that Claude Opus 4.7 already supports xhigh effort, so requests should preserve xhigh when the selected Claude model exposes that capability
  • add a supportsXHighEffort flag to the shared Claude model registry and route both Claude OAuth and Claude Code compatible effort mapping through it
  • keep the existing fallback to high for older Claude models and extend tests for both supported and unsupported branches

Testing

  • node --import tsx/esm --test tests/unit/claude-code-compatible-request.test.ts tests/unit/cc-compatible-provider.test.ts tests/unit/translator-openai-to-claude.test.ts

@rdself
rdself requested a review from diegosouzapw as a code owner April 16, 2026 23:39
Copilot AI review requested due to automatic review settings April 16, 2026 23:39
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 supportsXHighEffort to the shared RegistryModel type and Claude model entries.
  • Updated Claude Code compatible effort resolution to preserve xhigh only when the selected Claude model supports it.
  • Extended unit tests to cover both the preserve-xhigh and fallback-to-high branches.

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

Copy link
Copy Markdown
Collaborator

Thanks for this contribution! 🎉 The xhigh reasoning tier support has been integrated into the release/v3.6.8 branch and will ship in the next release. Appreciate your work on this!

@rdself
rdself deleted the coder/claude-xhigh-v368 branch April 20, 2026 05:35
@diegosouzapw diegosouzapw mentioned this pull request Apr 22, 2026
This was referenced Apr 30, 2026
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
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.

3 participants