Skip to content

Add Claude Opus 4.8 support#978

Merged
PeterDaveHello merged 1 commit into
masterfrom
add-claude-opus-4-8
Jun 4, 2026
Merged

Add Claude Opus 4.8 support#978
PeterDaveHello merged 1 commit into
masterfrom
add-claude-opus-4-8

Conversation

@PeterDaveHello
Copy link
Copy Markdown
Member

@PeterDaveHello PeterDaveHello commented Jun 4, 2026

Expose Claude Opus 4.8 through the Anthropic API and OpenRouter model lists using the official model identifiers.

Add the matching Anthropic display label to each locale so the new API option renders consistently with existing Claude models.

Summary by CodeRabbit

  • New Features
    • Added Claude Opus 4.8 model support, available through both Anthropic and OpenRouter providers
    • Extended multilingual support to accommodate the new model across 12+ languages including German, Spanish, French, Indonesian, Italian, Japanese, Korean, Portuguese, Russian, Turkish, and Simplified and Traditional Chinese

Expose Claude Opus 4.8 through the Anthropic API and
OpenRouter model lists using the official model identifiers.

Add the matching Anthropic display label to each locale so the new
API option renders consistently with existing Claude models.
@qodo-code-review
Copy link
Copy Markdown
Contributor

Review Summary by Qodo

Add Claude Opus 4.8 model support across APIs and locales

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Add Claude Opus 4.8 model support across Anthropic and OpenRouter APIs
• Add localized display labels for Claude Opus 4.8 in 12 language locales
• Register new model identifiers in configuration with official API values
Diagram
flowchart LR
  A["Claude Opus 4.8 Model"] --> B["Anthropic API"]
  A --> C["OpenRouter API"]
  B --> D["Config Registration"]
  C --> D
  D --> E["Locale Translations"]
  E --> F["12 Language Files"]

Loading

Grey Divider

File Changes

1. src/config/index.mjs ⚙️ Configuration changes +10/-0

Register Claude Opus 4.8 in model configuration

src/config/index.mjs


2. src/_locales/de/main.json Localization +1/-0

Add German locale label for Claude Opus 4.8

src/_locales/de/main.json


3. src/_locales/en/main.json Localization +1/-0

Add English locale label for Claude Opus 4.8

src/_locales/en/main.json


View more (11)
4. src/_locales/es/main.json Localization +1/-0

Add Spanish locale label for Claude Opus 4.8

src/_locales/es/main.json


5. src/_locales/fr/main.json Localization +1/-0

Add French locale label for Claude Opus 4.8

src/_locales/fr/main.json


6. src/_locales/in/main.json Localization +1/-0

Add Indonesian locale label for Claude Opus 4.8

src/_locales/in/main.json


7. src/_locales/it/main.json Localization +1/-0

Add Italian locale label for Claude Opus 4.8

src/_locales/it/main.json


8. src/_locales/ja/main.json Localization +1/-0

Add Japanese locale label for Claude Opus 4.8

src/_locales/ja/main.json


9. src/_locales/ko/main.json Localization +1/-0

Add Korean locale label for Claude Opus 4.8

src/_locales/ko/main.json


10. src/_locales/pt/main.json Localization +1/-0

Add Portuguese locale label for Claude Opus 4.8

src/_locales/pt/main.json


11. src/_locales/ru/main.json Localization +1/-0

Add Russian locale label for Claude Opus 4.8

src/_locales/ru/main.json


12. src/_locales/tr/main.json Localization +1/-0

Add Turkish locale label for Claude Opus 4.8

src/_locales/tr/main.json


13. src/_locales/zh-hans/main.json Localization +1/-0

Add Simplified Chinese locale label for Claude Opus 4.8

src/_locales/zh-hans/main.json


14. src/_locales/zh-hant/main.json Localization +1/-0

Add Traditional Chinese locale label for Claude Opus 4.8

src/_locales/zh-hant/main.json


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown
Contributor

qodo-code-review Bot commented Jun 4, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cf90ba9b-e243-42e4-9498-1e37fcb5d8f2

📥 Commits

Reviewing files that changed from the base of the PR and between 1d64c61 and 7cc5c23.

📒 Files selected for processing (14)
  • src/_locales/de/main.json
  • src/_locales/en/main.json
  • src/_locales/es/main.json
  • src/_locales/fr/main.json
  • src/_locales/in/main.json
  • src/_locales/it/main.json
  • src/_locales/ja/main.json
  • src/_locales/ko/main.json
  • src/_locales/pt/main.json
  • src/_locales/ru/main.json
  • src/_locales/tr/main.json
  • src/_locales/zh-hans/main.json
  • src/_locales/zh-hant/main.json
  • src/config/index.mjs

📝 Walkthrough

Walkthrough

This PR adds Claude Opus 4.8 model availability to the chatGPTBox extension. The model is registered in the configuration as two separate entries—one for direct Claude API access and one through OpenRouter—each with their correct API values. The display label is then added to all 13 supported language locales.

Changes

Claude Opus 4.8 Model Support

Layer / File(s) Summary
Model configuration and key registration
src/config/index.mjs
Adds claudeOpus48Api to claudeApiModelKeys and openRouter_anthropic_claude_opus4_8 to openRouterApiModelKeys, then registers both model entries in the shared Models mapping with their provider values (claude-opus-4-8 and anthropic/claude-opus-4.8 respectively) and display description Anthropic (Claude Opus 4.8).
Localization strings across all languages
src/_locales/en/main.json, src/_locales/de/main.json, src/_locales/es/main.json, src/_locales/fr/main.json, src/_locales/in/main.json, src/_locales/it/main.json, src/_locales/ja/main.json, src/_locales/ko/main.json, src/_locales/pt/main.json, src/_locales/ru/main.json, src/_locales/tr/main.json, src/_locales/zh-hans/main.json, src/_locales/zh-hant/main.json
The Anthropic (Claude Opus 4.8) label is added to all supported language locales so the new model displays correctly in the UI regardless of user language setting.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • ChatGPTBox-dev/chatGPTBox#896: Both PRs extend src/config/index.mjs by adding new Anthropic Claude model keys to claudeApiModelKeys/openRouterApiModelKeys and corresponding entries in the exported Models mapping (Opus 4.8 vs Haiku 4.5).
  • ChatGPTBox-dev/chatGPTBox#895: Both PRs modify src/config/index.mjs to extend the exported model registries (claudeApiModelKeys/openRouterApiModelKeys) and the shared Models mapping by adding new Anthropic model entries (Opus 4.8 vs Sonnet 4.5).
  • ChatGPTBox-dev/chatGPTBox#918: Both PRs update src/config/index.mjs by extending the exported Claude/OpenRouter model key arrays and adding new Models entries for Anthropic Claude Opus variants (main: Opus 4.8; retrieved: Opus 4.5/4.6).

Suggested labels

Review effort 2/5

Poem

🐰 A new Claude hops into the fold,
Opus 4.8, bright and bold!
From German to Mandarin wide,
Thirteen tongues greet it with pride.
Models and strings in harmony bound! 🌍

🚥 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 'Add Claude Opus 4.8 support' clearly and concisely summarizes the main change: adding support for a new Claude model (Opus 4.8) across API configurations and localizations.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-claude-opus-4-8

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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the 'Anthropic (Claude Opus 4.8)' model. It updates localization files across multiple languages to include the new model's display name and adds the corresponding configuration keys and model definitions in src/config/index.mjs for both direct API and OpenRouter integrations. No review comments were provided, and there is no additional feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the new Claude Opus 4.8 model option across the extension’s model catalogs, so users can select it via both Anthropic API and OpenRouter integrations, with consistent display labeling across supported locales.

Changes:

  • Adds claudeOpus48Api to the Anthropic API model key list and Models map (value claude-opus-4-8).
  • Adds openRouter_anthropic_claude_opus4_8 to the OpenRouter model key list and Models map (value anthropic/claude-opus-4.8).
  • Adds the Anthropic (Claude Opus 4.8) display label key to all existing locale JSON files.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/config/index.mjs Registers Claude Opus 4.8 for Anthropic API + OpenRouter model lists and model metadata.
src/_locales/de/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/en/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/es/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/fr/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/in/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/it/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/ja/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/ko/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/pt/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/ru/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/tr/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/zh-hans/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.
src/_locales/zh-hant/main.json Adds the Anthropic (Claude Opus 4.8) label for consistent UI rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PeterDaveHello PeterDaveHello merged commit 1a60a11 into master Jun 4, 2026
4 checks passed
@PeterDaveHello PeterDaveHello deleted the add-claude-opus-4-8 branch June 4, 2026 18:34
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