From 494551f8fc2cd275fa77e22afab8f2b6e29c8d08 Mon Sep 17 00:00:00 2001 From: David Katz Date: Wed, 10 Dec 2025 14:27:24 -0500 Subject: [PATCH] add cohrere --- .../goose/examples/build_canonical_models.rs | 2 +- .../canonical/data/canonical_models.json | 76 +++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) diff --git a/crates/goose/examples/build_canonical_models.rs b/crates/goose/examples/build_canonical_models.rs index d601888eb4..994b79a401 100644 --- a/crates/goose/examples/build_canonical_models.rs +++ b/crates/goose/examples/build_canonical_models.rs @@ -21,7 +21,7 @@ const ALLOWED_PROVIDERS: &[&str] = &[ "mistralai", // Mistral Large, Mixtral - very popular "x-ai", // Grok models - high profile "deepseek", // DeepSeek v3, R1 - gaining popularity - // "cohere", // Command R, Command R+ models + "cohere", // Command R, Command R+ models // "ai21", // Jamba 1.5 models // "qwen", // Qwen 2.5 series (Alibaba) // "01-ai", // Yi models diff --git a/crates/goose/src/providers/canonical/data/canonical_models.json b/crates/goose/src/providers/canonical/data/canonical_models.json index 0889ecaf21..3cc5fb7962 100644 --- a/crates/goose/src/providers/canonical/data/canonical_models.json +++ b/crates/goose/src/providers/canonical/data/canonical_models.json @@ -247,6 +247,82 @@ "image": 0.0 } }, + { + "id": "cohere/command-a", + "name": "Cohere: Command A", + "context_length": 256000, + "max_completion_tokens": 8192, + "input_modalities": [ + "text" + ], + "output_modalities": [ + "text" + ], + "supports_tools": false, + "pricing": { + "prompt": 2.5e-6, + "completion": 0.00001, + "request": 0.0, + "image": 0.0 + } + }, + { + "id": "cohere/command-r-08", + "name": "Cohere: Command R (08-2024)", + "context_length": 128000, + "max_completion_tokens": 4000, + "input_modalities": [ + "text" + ], + "output_modalities": [ + "text" + ], + "supports_tools": true, + "pricing": { + "prompt": 1.5e-7, + "completion": 6e-7, + "request": 0.0, + "image": 0.0 + } + }, + { + "id": "cohere/command-r-plus-08", + "name": "Cohere: Command R+ (08-2024)", + "context_length": 128000, + "max_completion_tokens": 4000, + "input_modalities": [ + "text" + ], + "output_modalities": [ + "text" + ], + "supports_tools": true, + "pricing": { + "prompt": 2.5e-6, + "completion": 0.00001, + "request": 0.0, + "image": 0.0 + } + }, + { + "id": "cohere/command-r7b-12", + "name": "Cohere: Command R7B (12-2024)", + "context_length": 128000, + "max_completion_tokens": 4000, + "input_modalities": [ + "text" + ], + "output_modalities": [ + "text" + ], + "supports_tools": false, + "pricing": { + "prompt": 3.75e-8, + "completion": 1.5e-7, + "request": 0.0, + "image": 0.0 + } + }, { "id": "deepseek/deepseek", "name": "DeepSeek: DeepSeek V3.2",