Skip to content

Commit f875fef

Browse files
Add new Cohere models (#834)
* Add new Cohere models Added `command-r` and `command-r-plus` models * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a3b3ce0 commit f875fef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/jupyter-ai-magics/jupyter_ai_magics/providers.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,15 @@ def is_api_key_exc(cls, e: Exception):
549549
class CohereProvider(BaseProvider, Cohere):
550550
id = "cohere"
551551
name = "Cohere"
552-
# Source: https://docs.cohere.com/reference/generate
553-
models = ["command", "command-nightly", "command-light", "command-light-nightly"]
552+
# Source: https://docs.cohere.com/reference/generate; https://docs.cohere.com/docs/models
553+
models = [
554+
"command",
555+
"command-nightly",
556+
"command-light",
557+
"command-light-nightly",
558+
"command-r-plus",
559+
"command-r",
560+
]
554561
model_id_key = "model"
555562
pypi_package_deps = ["cohere"]
556563
auth_strategy = EnvAuthStrategy(name="COHERE_API_KEY")

0 commit comments

Comments
 (0)