feat: add Claude Opus 4.8 model support#234
Closed
SeaL773 wants to merge 2 commits into
Closed
Conversation
Contributor
Author
Contributor
Author
|
After tracing the request path, I realized this PR has no real functional impact. Per Anthropic's official docs:
The
The only difference is one optional beta header that the API doesn't require. The reason Claude Code v2.1.112 still sends it is just that the version predates GA. Closing this — it's pattern consistency with 4-6/4-7 but doesn't fix or enable anything. Happy to re-open if there's evidence Anthropic checks for this header as a client-fingerprint signal. |
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
Add support for Claude Opus 4.8 (
claude-opus-4-8), released by Anthropic on May 28, 2026.Follows the same pattern as #203 (Opus 4.7 support).
Changes
src/model-config.ts"4-8"model override witheffort-2025-11-24beta (matching 4.6/4.7 config)README.mdclaude-opus-4-8to supported models tablesrc/betas.test.tsclaude-opus-4-8todisableEffortnon-haiku testclaude-opus-4-8to default no-1M-context testsupports1mContextassertion for opus 4.8Notes
supports1mContext()already handles 4.8 automatically (version comparison ≥ 4.6)transforms.tsandbetas.tsrequire no changes (model-agnostic logic)npx tsx --test src/betas.test.ts)References
claude-opus-4-8