Skip to content

feat(models): add Claude Opus 4.8 - #2435

Merged
steebchen merged 5 commits into
theopenco:mainfrom
analogpvt:feat/add-claude-opus-4-8
May 28, 2026
Merged

steebchen merged 5 commits into
theopenco:mainfrom
analogpvt:feat/add-claude-opus-4-8

Conversation

@analogpvt

@analogpvt analogpvt commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds Claude Opus 4.8 model with anthropic, aws-bedrock, and vertex-anthropic providers
  • Same pricing as Opus 4.7: $5/$25 per 1M tokens (tiered: $10/$37.5 over 200K)
  • 1M context, 128K max output, adaptive reasoning, vision, tools, web search

Test plan

  • pnpm --filter @llmgateway/models build passes
  • pnpm --filter gateway build passes
  • pnpm --filter api build passes
  • E2E: TEST_MODELS="anthropic/claude-opus-4-8" pnpm test:e2e

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for Claude Opus 4.8 model with adaptive reasoning capabilities for enhanced problem-solving, advanced vision and tool integration, JSON output schema validation for structured responses, integrated web search functionality with dedicated pricing, and comprehensive Anthropic provider support.

Review Change Stack

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ca51e911-6dbd-44fb-8c64-f3d5276b46df

📥 Commits

Reviewing files that changed from the base of the PR and between f8226e0 and 5044b62.

📒 Files selected for processing (1)
  • packages/models/src/models/anthropic.ts
💤 Files with no reviewable changes (1)
  • packages/models/src/models/anthropic.ts

Walkthrough

This PR adds a new claude-opus-4-8 model entry to the anthropic models registry, configuring it with anthropic-only provider support including adaptive reasoning, vision capabilities, JSON schema output support, explicit supported parameters, and web search enabled at a 0.01 price point.

Changes

Claude Opus 4.8 Model Addition

Layer / File(s) Summary
claude-opus-4-8 model configuration
packages/models/src/models/anthropic.ts
New model entry for claude-opus-4-8 with anthropic provider config, including adaptive reasoning with output omission, vision/tools, JSON schema support, explicit supported parameters, pricing, cache write settings, context limits, and web search pricing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • theopenco/llmgateway#1603: Both PRs extend anthropicModels with new Claude Opus model entries; this PR adds claude-opus-4-8 while the related PR adds/updates claude-opus-4-6.

Suggested reviewers

  • steebchen
  • smakosh
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(models): add Claude Opus 4.8' clearly and concisely describes the main change: adding a new model entry to the anthropicModels export.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Flat $5/$25 per 1M tokens across all context sizes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

1 similar comment
@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

Only the Anthropic provider is supported for Claude Opus 4.8 right now.
AWS Bedrock and Vertex AI mappings are removed, along with the bedrock
1h-cache allowlist entry that was added for them.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

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.

2 participants