Skip to content

The agent engineering platform.

Fix CohereError: embed is not an available endpoint on this model (#637)

Sasmitha Manathunga5c97f70bf1bb
diff --git a/langchain/embeddings/cohere.py b/langchain/embeddings/cohere.py
index 9a4f2ffe6e..420ce369aa 100644
--- a/langchain/embeddings/cohere.py
+++ b/langchain/embeddings/cohere.py
@@ -22,7 +22,7 @@ class CohereEmbeddings(BaseModel, Embeddings):
"""
client: Any #: :meta private:
- model: str = "medium"
+ model: str = "large"
"""Model name to use."""
cohere_api_key: Optional[str] = None