detached 3557782

Add remaining OpenCode Go catalog models

Cover the live Go /models IDs still missing after grok-4.5 and kimi-k3:
hy3-preview, mimo-v2-omni, and mimo-v2-pro. Pin them in
TestOpenCodeGoCatalog.
commit
3557782e4bf405267ee4221b23556049339f265a
author
mi-skam · · 2026-07-21 14:36 UTC
parent
f66b947
signature
SSH UnverifiedSHA256:Yu1uEv3+xppM2hvm7BsWney9tUWafRiTe/kq8zX8X0w The key is unknown
2 files · +10 -4
M packages/provider/catalog_builtin.go +3 -0
@@ -306,10 +306,13 @@ var builtinCatalog = []Model{
306306 {Provider: "opencode-go", ID: "glm-5.1", DisplayName: "GLM-5.1", ContextWindow: 202752, MaxOutput: 32768, Reasoning: true, PriceInput: 1.4, PriceOutput: 4.4, PriceCacheRead: 0.26, BaseURL: "https://opencode.ai/zen/go/v1"},
307307 {Provider: "opencode-go", ID: "glm-5.2", DisplayName: "GLM-5.2", ContextWindow: 1024000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.91, PriceOutput: 2.86, PriceCacheRead: 0.169, BaseURL: "https://opencode.ai/zen/go/v1"},
308308 {Provider: "opencode-go", ID: "grok-4.5", DisplayName: "Grok 4.5", ContextWindow: 500000, MaxOutput: 500000, Reasoning: true, PriceInput: 2, PriceOutput: 6, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},
309+ {Provider: "opencode-go", ID: "hy3-preview", DisplayName: "Hy3 Preview", ContextWindow: 256000, MaxOutput: 64000, Reasoning: true, PriceInput: 0.063, PriceOutput: 0.21, PriceCacheRead: 0.021, BaseURL: "https://opencode.ai/zen/go/v1"},
309310 {Provider: "opencode-go", ID: "kimi-k2.5", DisplayName: "Kimi K2.5", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.6, PriceOutput: 3, PriceCacheRead: 0.1, BaseURL: "https://opencode.ai/zen/go/v1"},
310311 {Provider: "opencode-go", ID: "kimi-k2.6", DisplayName: "Kimi K2.6", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.95, PriceOutput: 4, PriceCacheRead: 0.16, BaseURL: "https://opencode.ai/zen/go/v1"},
311312 {Provider: "opencode-go", ID: "kimi-k2.7-code", DisplayName: "Kimi K2.7 Code", ContextWindow: 262144, MaxOutput: 16384, Reasoning: true, PriceInput: 0.74, PriceOutput: 3.5, PriceCacheRead: 0.15, BaseURL: "https://opencode.ai/zen/go/v1"},
312313 {Provider: "opencode-go", ID: "kimi-k3", DisplayName: "Kimi K3", ContextWindow: 262144, MaxOutput: 131072, Reasoning: true, PriceInput: 3, PriceOutput: 15, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},
314+ {Provider: "opencode-go", ID: "mimo-v2-omni", DisplayName: "MiMo V2 Omni", ContextWindow: 262144, MaxOutput: 128000, Reasoning: true, PriceInput: 0.4, PriceOutput: 2, PriceCacheRead: 0.08, BaseURL: "https://opencode.ai/zen/go/v1"},
315+ {Provider: "opencode-go", ID: "mimo-v2-pro", DisplayName: "MiMo V2 Pro", ContextWindow: 1048576, MaxOutput: 128000, Reasoning: true, PriceInput: 1, PriceOutput: 3, PriceCacheRead: 0.2, BaseURL: "https://opencode.ai/zen/go/v1"},
313316 {Provider: "opencode-go", ID: "mimo-v2.5", DisplayName: "MiMo V2.5", ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.4, PriceOutput: 2, PriceCacheRead: 0.08, BaseURL: "https://opencode.ai/zen/go/v1"},
314317 {Provider: "opencode-go", ID: "mimo-v2.5-pro", DisplayName: "MiMo V2.5 Pro", ContextWindow: 1048576, MaxOutput: 128000, Reasoning: true, PriceInput: 1, PriceOutput: 3, PriceCacheRead: 0.2, BaseURL: "https://opencode.ai/zen/go/v1"},
315318 {Provider: "opencode-go", ID: "minimax-m2.5", DisplayName: "MiniMax M2.5", ContextWindow: 204800, MaxOutput: 65536, Reasoning: true, PriceInput: 0.3, PriceOutput: 1.2, PriceCacheRead: 0.03, BaseURL: "https://opencode.ai/zen/go"},
@@ -306,10 +306,13 @@ var builtinCatalog = []Model{
306 {Provider: "opencode-go", ID: "glm-5.1", DisplayName: "GLM-5.1", ContextWindow: 202752, MaxOutput: 32768, Reasoning: true, PriceInput: 1.4, PriceOutput: 4.4, PriceCacheRead: 0.26, BaseURL: "https://opencode.ai/zen/go/v1"},306 {Provider: "opencode-go", ID: "glm-5.1", DisplayName: "GLM-5.1", ContextWindow: 202752, MaxOutput: 32768, Reasoning: true, PriceInput: 1.4, PriceOutput: 4.4, PriceCacheRead: 0.26, BaseURL: "https://opencode.ai/zen/go/v1"},
307 {Provider: "opencode-go", ID: "glm-5.2", DisplayName: "GLM-5.2", ContextWindow: 1024000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.91, PriceOutput: 2.86, PriceCacheRead: 0.169, BaseURL: "https://opencode.ai/zen/go/v1"},307 {Provider: "opencode-go", ID: "glm-5.2", DisplayName: "GLM-5.2", ContextWindow: 1024000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.91, PriceOutput: 2.86, PriceCacheRead: 0.169, BaseURL: "https://opencode.ai/zen/go/v1"},
308 {Provider: "opencode-go", ID: "grok-4.5", DisplayName: "Grok 4.5", ContextWindow: 500000, MaxOutput: 500000, Reasoning: true, PriceInput: 2, PriceOutput: 6, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},308 {Provider: "opencode-go", ID: "grok-4.5", DisplayName: "Grok 4.5", ContextWindow: 500000, MaxOutput: 500000, Reasoning: true, PriceInput: 2, PriceOutput: 6, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},
309+ {Provider: "opencode-go", ID: "hy3-preview", DisplayName: "Hy3 Preview", ContextWindow: 256000, MaxOutput: 64000, Reasoning: true, PriceInput: 0.063, PriceOutput: 0.21, PriceCacheRead: 0.021, BaseURL: "https://opencode.ai/zen/go/v1"},
309 {Provider: "opencode-go", ID: "kimi-k2.5", DisplayName: "Kimi K2.5", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.6, PriceOutput: 3, PriceCacheRead: 0.1, BaseURL: "https://opencode.ai/zen/go/v1"},310 {Provider: "opencode-go", ID: "kimi-k2.5", DisplayName: "Kimi K2.5", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.6, PriceOutput: 3, PriceCacheRead: 0.1, BaseURL: "https://opencode.ai/zen/go/v1"},
310 {Provider: "opencode-go", ID: "kimi-k2.6", DisplayName: "Kimi K2.6", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.95, PriceOutput: 4, PriceCacheRead: 0.16, BaseURL: "https://opencode.ai/zen/go/v1"},311 {Provider: "opencode-go", ID: "kimi-k2.6", DisplayName: "Kimi K2.6", ContextWindow: 262144, MaxOutput: 65536, Reasoning: true, PriceInput: 0.95, PriceOutput: 4, PriceCacheRead: 0.16, BaseURL: "https://opencode.ai/zen/go/v1"},
311 {Provider: "opencode-go", ID: "kimi-k2.7-code", DisplayName: "Kimi K2.7 Code", ContextWindow: 262144, MaxOutput: 16384, Reasoning: true, PriceInput: 0.74, PriceOutput: 3.5, PriceCacheRead: 0.15, BaseURL: "https://opencode.ai/zen/go/v1"},312 {Provider: "opencode-go", ID: "kimi-k2.7-code", DisplayName: "Kimi K2.7 Code", ContextWindow: 262144, MaxOutput: 16384, Reasoning: true, PriceInput: 0.74, PriceOutput: 3.5, PriceCacheRead: 0.15, BaseURL: "https://opencode.ai/zen/go/v1"},
312 {Provider: "opencode-go", ID: "kimi-k3", DisplayName: "Kimi K3", ContextWindow: 262144, MaxOutput: 131072, Reasoning: true, PriceInput: 3, PriceOutput: 15, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},313 {Provider: "opencode-go", ID: "kimi-k3", DisplayName: "Kimi K3", ContextWindow: 262144, MaxOutput: 131072, Reasoning: true, PriceInput: 3, PriceOutput: 15, PriceCacheRead: 0.3, BaseURL: "https://opencode.ai/zen/go/v1"},
314+ {Provider: "opencode-go", ID: "mimo-v2-omni", DisplayName: "MiMo V2 Omni", ContextWindow: 262144, MaxOutput: 128000, Reasoning: true, PriceInput: 0.4, PriceOutput: 2, PriceCacheRead: 0.08, BaseURL: "https://opencode.ai/zen/go/v1"},
315+ {Provider: "opencode-go", ID: "mimo-v2-pro", DisplayName: "MiMo V2 Pro", ContextWindow: 1048576, MaxOutput: 128000, Reasoning: true, PriceInput: 1, PriceOutput: 3, PriceCacheRead: 0.2, BaseURL: "https://opencode.ai/zen/go/v1"},
313 {Provider: "opencode-go", ID: "mimo-v2.5", DisplayName: "MiMo V2.5", ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.4, PriceOutput: 2, PriceCacheRead: 0.08, BaseURL: "https://opencode.ai/zen/go/v1"},316 {Provider: "opencode-go", ID: "mimo-v2.5", DisplayName: "MiMo V2.5", ContextWindow: 1000000, MaxOutput: 128000, Reasoning: true, PriceInput: 0.4, PriceOutput: 2, PriceCacheRead: 0.08, BaseURL: "https://opencode.ai/zen/go/v1"},
314 {Provider: "opencode-go", ID: "mimo-v2.5-pro", DisplayName: "MiMo V2.5 Pro", ContextWindow: 1048576, MaxOutput: 128000, Reasoning: true, PriceInput: 1, PriceOutput: 3, PriceCacheRead: 0.2, BaseURL: "https://opencode.ai/zen/go/v1"},317 {Provider: "opencode-go", ID: "mimo-v2.5-pro", DisplayName: "MiMo V2.5 Pro", ContextWindow: 1048576, MaxOutput: 128000, Reasoning: true, PriceInput: 1, PriceOutput: 3, PriceCacheRead: 0.2, BaseURL: "https://opencode.ai/zen/go/v1"},
315 {Provider: "opencode-go", ID: "minimax-m2.5", DisplayName: "MiniMax M2.5", ContextWindow: 204800, MaxOutput: 65536, Reasoning: true, PriceInput: 0.3, PriceOutput: 1.2, PriceCacheRead: 0.03, BaseURL: "https://opencode.ai/zen/go"},318 {Provider: "opencode-go", ID: "minimax-m2.5", DisplayName: "MiniMax M2.5", ContextWindow: 204800, MaxOutput: 65536, Reasoning: true, PriceInput: 0.3, PriceOutput: 1.2, PriceCacheRead: 0.03, BaseURL: "https://opencode.ai/zen/go"},
M packages/provider/provider_test.go +7 -4
@@ -447,10 +447,10 @@ func TestGPT56CatalogEntries(t *testing.T) {
447447 }
448448 }
449449
450-// TestOpenCodeGoCatalog pins the Grok 4.5 and Kimi K3 entries added to
451-// the OpenCode Go provider. Both are listed in the vendor's current Go
452-// model lineup (https://opencode.ai/docs/go) and were missing from the
453-// baked-in catalog.
450+// TestOpenCodeGoCatalog pins the OpenCode Go catalog entries that were
451+// missing from the baked-in list. grok-4.5 and kimi-k3 are on the vendor
452+// Go docs (https://opencode.ai/docs/go); mimo-v2-omni, mimo-v2-pro, and
453+// hy3-preview are served by https://opencode.ai/zen/go/v1/models.
454454 func TestOpenCodeGoCatalog(t *testing.T) {
455455 cases := []struct {
456456 id string
@@ -461,7 +461,10 @@ func TestOpenCodeGoCatalog(t *testing.T) {
461461 cacheRead float64
462462 }{
463463 {"grok-4.5", 500000, 500000, 2, 6, 0.3},
464+ {"hy3-preview", 256000, 64000, 0.063, 0.21, 0.021},
464465 {"kimi-k3", 262144, 131072, 3, 15, 0.3},
466+ {"mimo-v2-omni", 262144, 128000, 0.4, 2, 0.08},
467+ {"mimo-v2-pro", 1048576, 128000, 1, 3, 0.2},
465468 }
466469 for _, tc := range cases {
467470 m, err := FindModel("opencode-go", tc.id)
@@ -447,10 +447,10 @@ func TestGPT56CatalogEntries(t *testing.T) {
447 }447 }
448 }448 }
449 449
450-// TestOpenCodeGoCatalog pins the Grok 4.5 and Kimi K3 entries added to450+// TestOpenCodeGoCatalog pins the OpenCode Go catalog entries that were
451-// the OpenCode Go provider. Both are listed in the vendor's current Go451+// missing from the baked-in list. grok-4.5 and kimi-k3 are on the vendor
452-// model lineup (https://opencode.ai/docs/go) and were missing from the452+// Go docs (https://opencode.ai/docs/go); mimo-v2-omni, mimo-v2-pro, and
453-// baked-in catalog.453+// hy3-preview are served by https://opencode.ai/zen/go/v1/models.
454 func TestOpenCodeGoCatalog(t *testing.T) {454 func TestOpenCodeGoCatalog(t *testing.T) {
455 cases := []struct {455 cases := []struct {
456 id string456 id string
@@ -461,7 +461,10 @@ func TestOpenCodeGoCatalog(t *testing.T) {
461 cacheRead float64461 cacheRead float64
462 }{462 }{
463 {"grok-4.5", 500000, 500000, 2, 6, 0.3},463 {"grok-4.5", 500000, 500000, 2, 6, 0.3},
464+ {"hy3-preview", 256000, 64000, 0.063, 0.21, 0.021},
464 {"kimi-k3", 262144, 131072, 3, 15, 0.3},465 {"kimi-k3", 262144, 131072, 3, 15, 0.3},
466+ {"mimo-v2-omni", 262144, 128000, 0.4, 2, 0.08},
467+ {"mimo-v2-pro", 1048576, 128000, 1, 3, 0.2},
465 }468 }
466 for _, tc := range cases {469 for _, tc := range cases {
467 m, err := FindModel("opencode-go", tc.id)470 m, err := FindModel("opencode-go", tc.id)

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