Skip to content

Commit

Permalink
Backport PR jupyterlab#594: Upgrades cohere dependency, model list (j…
Browse files Browse the repository at this point in the history
…upyterlab#597)

Co-authored-by: Jason Weill <[email protected]>
  • Loading branch information
meeseeksmachine and JasonWeill authored Jan 23, 2024
1 parent 5dec97e commit c8df21b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,15 @@ class OpenAIEmbeddingsProvider(BaseEmbeddingsProvider, OpenAIEmbeddings):
class CohereEmbeddingsProvider(BaseEmbeddingsProvider, CohereEmbeddings):
id = "cohere"
name = "Cohere"
models = ["large", "multilingual-22-12", "small"]
models = [
"embed-english-v2.0",
"embed-english-light-v2.0",
"embed-multilingual-v2.0",
"embed-english-v3.0",
"embed-english-light-v3.0",
"embed-multilingual-v3.0",
"embed-multilingual-light-v3.0",
]
model_id_key = "model"
pypi_package_deps = ["cohere"]
auth_strategy = EnvAuthStrategy(name="COHERE_API_KEY")
Expand Down
2 changes: 1 addition & 1 deletion packages/jupyter-ai-magics/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test = ["coverage", "pytest", "pytest-asyncio", "pytest-cov"]
all = [
"ai21",
"anthropic~=0.3.0",
"cohere",
"cohere>4.40,<5",
"gpt4all",
"huggingface_hub",
"ipywidgets",
Expand Down

0 comments on commit c8df21b

Please sign in to comment.