Skip to content

Add Claude Sonnet 5.5 model support - #122

Merged
wch merged 1 commit into
mainfrom
add-sonnet-5-5
Sep 29, 2026
Merged

wch merged 1 commit into
mainfrom
add-sonnet-5-5

Conversation

@wch

@wch wch commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

This PR adds Claude Sonnet 5.5 (claude-sonnet-5-5, released 2026-09-28) to the model catalog, so it shows up with the right context limits and thinking-effort options on Anthropic, Posit AI Pass, Bedrock, and OpenRouter-style IDs.

  • Capability rule (ai-config): 1M context, 128K max output, family claude-5.5. It sits before the broader ^claude-sonnet-5 rule, which would otherwise match it.
  • No "off" thinking level. Sonnet 5.5 thinks adaptively by default, and thinking: {type: "disabled"} returns a 400. Our "off" works by leaving the thinking field out, which on this model would still think, at the API's default effort, with thinking text omitted. So "off" isn't offered, same as for Opus 5.5. The model's real lowest setting, thinking: {type: "between_tools"}, isn't wired into the clients.
  • Supplemental Anthropic model entry, so Sonnet 5.5 appears in the selector until /v1/models returns it.
  • No Posit AI Pass supersession of Sonnet 5. Sonnet 5.5 has breaking API changes, so Sonnet 5 stays selectable. The picker moves it to the "More models" submenu.

Companion monorepo PR: pins the submodule to this change and adds pricing and model-picker defaults.

Verification

  • New tests cover the Sonnet 5.5 rule for bare, Bedrock-prefixed, and dot-separated IDs, and confirm plain claude-sonnet-5 still gets the Sonnet 5 rule with "off".
  • ai-config model-capability tests, ai-provider-bridge provider tests, and type checks pass.

- Capability rule for claude-sonnet-5-5 (128K output, 1M context),
  placed before the generic claude-sonnet-5 rule. Adaptive thinking is
  on by default and `thinking: disabled` returns a 400, so omitting
  thinking cannot turn it off; "off" is not offered (Opus 5.5 precedent).
- Supplemental model entry so Sonnet 5.5 appears in the Anthropic
  selector until /v1/models returns it.
- No Posit AI Pass supersession: Sonnet 5 stays selectable (it moves to
  the picker's More models submenu) since 5.5 has breaking API changes.
@wch
wch merged commit 2f9c741 into main Sep 29, 2026
4 checks passed
@wch
wch deleted the add-sonnet-5-5 branch September 29, 2026 18:25
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