22// Selectable ids come from live GET /zen/go/v1/models in the host; this
33// packaged list is used when that fetch has not succeeded. Protocol
44// routing stays here. Live ids absent from PROTOCOL_BY_ID use Chat Completions.
5- //
6- // Protocol per id mirrors the Go gateway endpoint table
7- // (https://opencode.ai/docs/go/#endpoints, verified 11/10/2026). The Go
8- // gateway is NOT protocol-identical to the Zen gateway: MiniMax and Qwen3.8
9- // Max speak the Anthropic Messages API on Go but Chat Completions on Zen.
5+ // MiniMax and Qwen3.8 Max are messages on Go, unlike Zen chat-completions.
106
117export type GoProtocol = "chat-completions" | "responses" | "messages" ;
128
@@ -17,7 +13,6 @@ interface GoModel {
1713}
1814
1915export const OPENCODE_GO_MODELS = [
20- // OpenAI Responses API
2116 { id : "grok-4.7" , name : "Grok 4.7" , protocol : "responses" } ,
2217 { id : "grok-4.6" , name : "Grok 4.6" , protocol : "responses" } ,
2318 { id : "grok-4.5" , name : "Grok 4.5" , protocol : "responses" } ,
@@ -33,7 +28,6 @@ export const OPENCODE_GO_MODELS = [
3328 name : "Muse Spark 1.2 Contributor" ,
3429 protocol : "responses" ,
3530 } ,
36- // Anthropic Messages API
3731 { id : "claude-haiku-5-5" , name : "Claude Haiku 5.5" , protocol : "messages" } ,
3832 { id : "minimax-m3" , name : "MiniMax M3" , protocol : "messages" } ,
3933 { id : "minimax-m2.7" , name : "MiniMax M2.7" , protocol : "messages" } ,
@@ -43,7 +37,6 @@ export const OPENCODE_GO_MODELS = [
4337 { id : "qwen3.7-max" , name : "Qwen3.7 Max" , protocol : "messages" } ,
4438 { id : "qwen3.7-plus" , name : "Qwen3.7 Plus" , protocol : "messages" } ,
4539 { id : "qwen3.6-plus" , name : "Qwen3.6 Plus" , protocol : "messages" } ,
46- // OpenAI Chat Completions API
4740 { id : "glm-5.3-flash" , name : "GLM-5.3-Flash" , protocol : "chat-completions" } ,
4841 { id : "glm-5.3" , name : "GLM-5.3" , protocol : "chat-completions" } ,
4942 { id : "glm-5.2" , name : "GLM-5.2" , protocol : "chat-completions" } ,
0 commit comments