0xPlaygrounds / 0xPlaygrounds/rig

Anthropic model constants are missing the Claude 5 family

Open Beginner friendly
#2,506 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8.6k
Forks
960
Avg merge
4h 18m
Merged PRs (30d)
124

Description

`crates/rig-core/src/providers/anthropic/completion.rs` stops at `claude-opus-4-8` and `claude-sonnet-4-6`. Anthropic's current lineup is Claude Fable 5.1, Opus 5 and Sonnet 5:
https://platform.claude.com/docs/en/about-claude/models/overview

Same update as #1616, and #1370 before that. These go stale every time Anthropic ships, so it keeps coming back around.

Two other places need it or the constants are only half useful:

- `default_max_tokens_for_model` has no arm for the new IDs, so they fall through to the 2,048 fallback. All three are 128K.
- `supports_mid_conversation_system_messages` only checks Opus 4.8. Opus 5 and Fable support it, Sonnet 5 does not.

I have this working locally against main and can open a PR.

Contributor guide

Open the contributing guide

Research direction

Start in crates/rig-core/src/providers/anthropic/completion.rs and inspect the model constants, default_max_tokens_for_model, and supports_mid_conversation_system_messages. Add the Claude Fable 5.1, Opus 5, and Sonnet 5 IDs with the stated token limits and system-message support, then verify the existing Anthropic provider tests or checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.