feat: support Claude Opus 4.8#521
Merged
Merged
Conversation
Bump canonical opus pin to claude-opus-4-8 and list it in /v1/models. Explicit claude-opus-4-8 requests already pin via the existing opus envOverride path; 1M context mapping covers it automatically.
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
CANONICAL_OPUS_MODELtoclaude-opus-4-8so fresh installs default to Opus 4.8 foropus/claude-opus-*requestsclaude-opus-4-8(Claude Opus 4.8, 1M context on Max) in/v1/modelsclaude-opus-4-8requests are pinned automatically via the existingclaude-opus-*envOverride path (fix(proxy): support explicit opus 4.6 and 4.7 pins #497); thesupports1mContextmapping already routes 4.8 toopus[1m]Test plan
npm testpassesproxy-env-stripping)claude-opus-4-8beats inherited env pin (proxy-env-stripping)claude-opus-4-8maps toopus[1m](models)/v1/modelslists 4.8 with correct context window (openai)