Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/goose-provider-types/src/canonical/name_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub fn map_provider_name(provider: &str) -> &str {
"zhipu" => "zhipuai",
"novita" => "novita-ai",
"opencode_go" => "opencode-go",
"opencode_zen" => "opencode",
"ollama_cloud" => "ollama-cloud",
"kimi_code" => "kimi-for-coding",
_ => provider,
Expand Down Expand Up @@ -345,6 +346,10 @@ mod tests {
map_to_canonical_model("opencode_go", "kimi-k2.6", r),
Some("opencode-go/kimi-k2.6".to_string())
);
assert_eq!(
map_to_canonical_model("opencode_zen", "kimi-k3", r),
Some("opencode/kimi-k3".to_string())
);

// === OpenRouter ===
assert_eq!(
Expand Down
1 change: 1 addition & 0 deletions crates/goose-providers/src/declarative.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub(crate) mod declarative_providers {
ollama_cloud,
omlx,
opencode_go,
opencode_zen,
orcarouter,
ovhcloud,
perplexity,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "opencode_zen",
Comment thread
vincenzopalazzo marked this conversation as resolved.
Resolved
"engine": "openai",
"display_name": "OpenCode Zen",
"description": "OpenCode Zen gateway — curated, benchmarked models through the OpenAI-compatible API.",
"api_key_env": "OPENCODE_API_KEY",
"base_url": "https://opencode.ai/zen/v1",
"catalog_provider_id": "opencode",
"dynamic_models": false,
"model_doc_link": "https://opencode.ai/docs/zen",
"preserves_thinking": true,
"models": [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include all Zen chat-completions models

Because dynamic_models is false, fetch_supported_models returns only this static array, so documented OpenCode Zen /chat/completions models that are not listed here are undiscoverable in goose. I checked the current Zen docs and /zen/v1/models payload: compatible models such as big-pickle, laguna-s-2.1-free, ling-3.0-flash-free, longcat-2.0-free, north-mini-code-free, nemotron-3-ultra-free, and glm-5 are served on the same OpenAI-compatible endpoint but will not appear in model selection or inventory refresh unless users manually type them.

Useful? React with 👍 / 👎.

{"name": "kimi-k3", "context_limit": 262144},
{"name": "kimi-k2.7-code", "context_limit": 262144},
{"name": "kimi-k2.6", "context_limit": 262144},
{"name": "kimi-k2.5", "context_limit": 262144},
{"name": "glm-5.2", "context_limit": 204800},
{"name": "glm-5.1", "context_limit": 204800},
{"name": "deepseek-v4-pro", "context_limit": 1000000},
{"name": "deepseek-v4-flash", "context_limit": 1000000},
{"name": "deepseek-v4-flash-free", "context_limit": 1000000},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Correct the free Flash context limit

For deepseek-v4-flash-free, this declares a 1,000,000-token window even though the bundled canonical record specifies 200,000 (canonical_models.json:112540-112542); other new entries such as Kimi K3 and MiniMax M3 also disagree with that catalog. Canonical materialization corrects normal requests, but the CLI model-switch path reads metadata().known_models directly (crates/goose-cli/src/session/mod.rs:955-969), so switching from a model with a 200k–1m context to this model suppresses the smaller-window/compaction warning. Align the declared limits with the canonical records.

Useful? React with 👍 / 👎.

{"name": "minimax-m3", "context_limit": 204800},
{"name": "minimax-m2.7", "context_limit": 204800},
{"name": "minimax-m2.5", "context_limit": 204800},
{"name": "mimo-v2.5-free", "context_limit": 262144}
],
"supports_streaming": true
}