Skip to content

feat(models): add Claude Opus 4.7 and Sonnet 4.6#35

Merged
chaliy merged 2 commits into
mainfrom
claude/maint-model-profiles-t0rOv
May 17, 2026
Merged

feat(models): add Claude Opus 4.7 and Sonnet 4.6#35
chaliy merged 2 commits into
mainfrom
claude/maint-model-profiles-t0rOv

Conversation

@chaliy
Copy link
Copy Markdown
Owner

@chaliy chaliy commented May 17, 2026

What

Adds two recently released Anthropic models to the registry and default model list:

  • claude-opus-4.7 — 1M context, 128K output, reasoning + vision + tools
  • claude-sonnet-4.6 — 1M context, 64K output, reasoning + vision + tools

Why

Routine maintenance per specs/maintenance.md R2.2 / R2.4 — keep the simulator's model registry current with major-provider releases. The architecture spec model tables are updated alongside the code (R5.1).

How

  • Added profiles in src/openai/models.rs with appropriate context windows, output limits, capabilities, and knowledge cutoffs
  • Added the new IDs to default_models() in src/cli/config.rs so they appear in /openai/v1/models
  • Updated the Claude table in specs/architecture.md
  • Added focused unit tests for both new profiles

Risk

  • Low. Purely additive — no existing models or fields change. The new entries flow through the same code paths exercised by existing tests.

Checklist

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test (165 passed including the two new model tests)
  • Spec updated (specs/architecture.md)

chaliy added 2 commits May 17, 2026 05:15
Add two recently released Claude profiles to the model registry,
default model list, and architecture spec:

- claude-opus-4.7: 1M context, 128K output, reasoning + vision + tools
- claude-sonnet-4.6: 1M context, 64K output, reasoning + vision + tools

Backed by unit tests in `src/openai/models.rs`.
clippy 1.95.0 ships a new `clippy::unnecessary_sort_by` lint that
flags the sort_by closure in `draw_model_chart`. Replace the closure
with `sort_by_key + std::cmp::Reverse` per the lint's suggestion.
Behavior is unchanged.
@chaliy chaliy merged commit 05a6fcd into main May 17, 2026
11 checks passed
@chaliy chaliy deleted the claude/maint-model-profiles-t0rOv branch May 17, 2026 05:30
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.

1 participant