Skip to content

chore: Claude Sonnet 5 to all providers#3604

Merged
amitksingh1490 merged 3 commits into
mainfrom
add-sonnet-6
Jun 30, 2026
Merged

chore: Claude Sonnet 5 to all providers#3604
amitksingh1490 merged 3 commits into
mainfrom
add-sonnet-6

Conversation

@amitksingh1490

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Sonnet 5 (claude-sonnet-5) to all providers that hardcode a Claude model catalog, per the models overview docs.

Sonnet 5 has a 1M-token context window, 128k max output, supports adaptive thinking (always on), tools, and vision.

Changes

crates/forge_repo/src/provider/provider.json — added claude-sonnet-5:

  • claude_code, vertex_ai_anthropic, opencode_zenclaude-sonnet-5
  • bedrock → all four ID variants matching the existing Sonnet 4.6 pattern: global., us., eu., and anthropic.claude-sonnet-5

Providers that fetch models dynamically from a /models URL (e.g. anthropic, open_router, requesty) pick up Sonnet 5 automatically.

Supporting logic

  • forge_repo/.../anthropic.rs — excluded sonnet-5 from the legacy interleaved-thinking beta header (auto-enabled via adaptive thinking).
  • forge_app/.../model_specific_reasoning.rs — classified sonnet-5 in the AdaptiveFriendly family (same as Sonnet 4.6).
  • forge_app/.../dto/anthropic/response.rs — set context length to 1M tokens for claude-sonnet-5.

Verification

  • JSON validated
  • cargo check -p forge_app -p forge_repo passes

@github-actions github-actions Bot added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: provider Updates provider.json configuration. labels Jun 30, 2026
@amitksingh1490 amitksingh1490 changed the title feat: add Claude Sonnet 5 to all providers chore: Claude Sonnet 5 to all providers Jun 30, 2026
@amitksingh1490 amitksingh1490 added type: fix Iterations on existing features or infrastructure. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Jun 30, 2026
@github-actions github-actions Bot added the type: chore Routine tasks like conversions, reorganization, and maintenance work. label Jun 30, 2026
@amitksingh1490 amitksingh1490 enabled auto-merge (squash) June 30, 2026 19:06
@amitksingh1490 amitksingh1490 merged commit 87f7e20 into main Jun 30, 2026
8 checks passed
@amitksingh1490 amitksingh1490 deleted the add-sonnet-6 branch June 30, 2026 19:15
KooshaPari added a commit to KooshaPari/forgecode that referenced this pull request Jul 3, 2026
* chore(deps): update rust crate config to v0.15.25 (tailcallhq#3574)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.1 (tailcallhq#3575)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.3 (tailcallhq#3576)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate posthog-rs to v0.14.2 (tailcallhq#3577)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.2 (tailcallhq#3578)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.4 (tailcallhq#3579)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate open to v5.3.6 (tailcallhq#3587)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate indicatif to v0.18.5 (tailcallhq#3589)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate posthog-rs to 0.15.0 (tailcallhq#3590)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.3 (tailcallhq#3593)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.6 (tailcallhq#3594)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.4 (tailcallhq#3601)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.8 (tailcallhq#3597)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate posthog-rs to v0.15.1 (tailcallhq#3602)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore:  Claude Sonnet 5 to all providers (tailcallhq#3604)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.5 (tailcallhq#3605)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.9 (tailcallhq#3606)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate clap_complete to v4.6.6 (tailcallhq#3607)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: Neuralwatt provider (tailcallhq#3608)

* chore(deps): update rust crate console to v0.16.4 (tailcallhq#3609)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.7 (tailcallhq#3612)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.11 (tailcallhq#3613)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.8 (tailcallhq#3617)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate clap_complete to v4.6.7 (tailcallhq#3618)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate ignore to v0.4.27 (tailcallhq#3610)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate indicatif to v0.18.6 (tailcallhq#3619)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate rand to v0.10.2 (tailcallhq#3621)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate posthog-rs to 0.17.0 (tailcallhq#3620)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency csv-parse to v7.0.1 (tailcallhq#3625)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency tsx to v4.22.5 (tailcallhq#3626)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.10 (tailcallhq#3627)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.14 (tailcallhq#3628)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(sync): regenerate Cargo.lock after upstream merge (resolves cleanly)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amit Singh <amitksingh1490@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KooshaPari <koosha@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore Routine tasks like conversions, reorganization, and maintenance work. 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