detached 30477c4

feat(provider): add Anthropic Sonnet 5.5

commit
30477c42479173c66967397ab108cf8ecc4da84d
author
brice · · 2026-09-29 07:36 UTC
parent
ea0e112
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +18 -0
M packages/provider/models.go +5 -0
@@ -323,6 +323,11 @@ var Catalog = []Model{
323323 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
324324 PriceInput: 2, PriceOutput: 10, PriceCacheRead: 0.2, PriceCacheWrite: 2.5,
325325 },
326+ {
327+ Provider: "anthropic", ID: "claude-sonnet-5-5", DisplayName: "Claude Sonnet 5.5",
328+ ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
329+ PriceInput: 2, PriceOutput: 10, PriceCacheRead: 0.2, PriceCacheWrite: 2.5,
330+ },
326331 {
327332 Provider: "anthropic", ID: "claude-fable-5", DisplayName: "Claude Fable 5",
328333 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
@@ -323,6 +323,11 @@ var Catalog = []Model{
323 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,323 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
324 PriceInput: 2, PriceOutput: 10, PriceCacheRead: 0.2, PriceCacheWrite: 2.5,324 PriceInput: 2, PriceOutput: 10, PriceCacheRead: 0.2, PriceCacheWrite: 2.5,
325 },325 },
326+ {
327+ Provider: "anthropic", ID: "claude-sonnet-5-5", DisplayName: "Claude Sonnet 5.5",
328+ ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
329+ PriceInput: 2, PriceOutput: 10, PriceCacheRead: 0.2, PriceCacheWrite: 2.5,
330+ },
326 {331 {
327 Provider: "anthropic", ID: "claude-fable-5", DisplayName: "Claude Fable 5",332 Provider: "anthropic", ID: "claude-fable-5", DisplayName: "Claude Fable 5",
328 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,333 ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, AdaptiveThinking: true,
M packages/provider/provider_test.go +13 -0
@@ -593,6 +593,19 @@ func TestClaudeFable51Catalog(t *testing.T) {
593593 }
594594 }
595595
596+func TestClaudeSonnet55Catalog(t *testing.T) {
597+ m, err := FindModel("anthropic", "claude-sonnet-5-5")
598+ if err != nil {
599+ t.Fatal(err)
600+ }
601+ if m.DisplayName != "Claude Sonnet 5.5" || m.ContextWindow != 1000000 || m.MaxOutput != 128000 || !m.Reasoning || !m.AdaptiveThinking || m.Speculative {
602+ t.Fatalf("unexpected Sonnet 5.5 model: %+v", m)
603+ }
604+ if m.PriceInput != 2 || m.PriceOutput != 10 || m.PriceCacheRead != 0.2 || m.PriceCacheWrite != 2.5 {
605+ t.Fatalf("unexpected Sonnet 5.5 pricing: %+v", m)
606+ }
607+}
608+
596609 func TestClaudeSonnet5Catalog(t *testing.T) {
597610 m, err := FindModel("anthropic", "claude-sonnet-5")
598611 if err != nil {
@@ -593,6 +593,19 @@ func TestClaudeFable51Catalog(t *testing.T) {
593 }593 }
594 }594 }
595 595
596+func TestClaudeSonnet55Catalog(t *testing.T) {
597+ m, err := FindModel("anthropic", "claude-sonnet-5-5")
598+ if err != nil {
599+ t.Fatal(err)
600+ }
601+ if m.DisplayName != "Claude Sonnet 5.5" || m.ContextWindow != 1000000 || m.MaxOutput != 128000 || !m.Reasoning || !m.AdaptiveThinking || m.Speculative {
602+ t.Fatalf("unexpected Sonnet 5.5 model: %+v", m)
603+ }
604+ if m.PriceInput != 2 || m.PriceOutput != 10 || m.PriceCacheRead != 0.2 || m.PriceCacheWrite != 2.5 {
605+ t.Fatalf("unexpected Sonnet 5.5 pricing: %+v", m)
606+ }
607+}
608+
596 func TestClaudeSonnet5Catalog(t *testing.T) {609 func TestClaudeSonnet5Catalog(t *testing.T) {
597 m, err := FindModel("anthropic", "claude-sonnet-5")610 m, err := FindModel("anthropic", "claude-sonnet-5")
598 if err != nil {611 if err != nil {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close