Skip to content

The agent engineering platform.

Fix documentation for 'model' parameter in CohereEmbeddings (#797)

Johanna Appelcacf4091c0dd
diff --git a/langchain/embeddings/cohere.py b/langchain/embeddings/cohere.py
index 420ce369aa..b55e4aaafa 100644
--- a/langchain/embeddings/cohere.py
+++ b/langchain/embeddings/cohere.py
@@ -18,7 +18,7 @@ class CohereEmbeddings(BaseModel, Embeddings):
.. code-block:: python
from langchain.embeddings import CohereEmbeddings
- cohere = CohereEmbeddings(model_name="medium", cohere_api_key="my-api-key")
+ cohere = CohereEmbeddings(model="medium", cohere_api_key="my-api-key")
"""
client: Any #: :meta private: