FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Claude Opus 5 support for claude_code and anthropic providers by amitksingh1490 · Pull Request #3759 · tailcallhq/forgecode · GitHub

fix: Claude Opus 5 support for claude_code and anthropic providers - #3759

Merged
tusharmath merged 1 commit into
mainfrom
feat/claude-opus-5
Jul 24, 2026
Merged

fix: Claude Opus 5 support for claude_code and anthropic providers#3759
tusharmath merged 1 commit into
mainfrom
feat/claude-opus-5

Conversation

Copy link
Copy Markdown
Contributor

Summary

Integrates the newly released Claude Opus 5 (released Jul 24, 2026):

  • Add claude-opus-5 model to the claude_code provider in provider.json (1M context, tools, reasoning, text+image). The anthropic provider lists models dynamically from the API, so it picks up the model automatically.
  • Classify opus-5 as AdaptiveOnly in ModelSpecificReasoning — adaptive thinking only; legacy budget_tokens and temperature/top_p/top_k are dropped (same API contract as Opus 4.7/4.8).
  • Skip the redundant interleaved-thinking-2025-05-14 beta header for Opus 5 (auto-enabled by adaptive thinking).
  • Map claude-opus-5 to 1M-token context length in the Anthropic response DTO.

Test plan

  • cargo test -p forge_app -p forge_repo — all pass
  • Added tests: Opus 5 AdaptiveOnly reasoning transform; Opus 5 beta-header exclusion

Co-Authored-By: ForgeCode noreply@forgecode.dev

- Add claude-opus-5 model to claude_code provider in provider.json (1M context)
- Classify opus-5 as AdaptiveOnly in ModelSpecificReasoning (adaptive thinking only; drops budget_tokens and sampling params like Opus 4.7/4.8)
- Skip redundant interleaved-thinking beta header for Opus 5
- Map claude-opus-5 to 1M context length in Anthropic response DTO

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
github-actions Bot added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: provider Updates provider.json configuration. labels Jul 24, 2026
amitksingh1490 changed the title feat: add Claude Opus 5 support for claude_code and anthropic providers fix: Claude Opus 5 support for claude_code and anthropic providers Jul 24, 2026
amitksingh1490 added type: fix Iterations on existing features or infrastructure. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Jul 24, 2026
amitksingh1490 marked this pull request as ready for review July 24, 2026 18:03
tusharmath merged commit de611a4 into main Jul 24, 2026
20 checks passed
tusharmath deleted the feat/claude-opus-5 branch July 24, 2026 18:17
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

Labels

type: fix Iterations on existing features or infrastructure. type: provider Updates provider.json configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL