diff --git a/pyproject.toml b/pyproject.toml index b884c1f54..8d0b8072b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cohere" -version = "5.13.0" +version = "5.13.1" description = "" readme = "README.md" authors = [] diff --git a/reference.md b/reference.md index 06cf6da61..9cf1c2f5e 100644 --- a/reference.md +++ b/reference.md @@ -1793,7 +1793,7 @@ We recommend a maximum of 1,000 documents for optimal endpoint performance.
-**model:** `typing.Optional[str]` — The identifier of the model to use, one of : `rerank-english-v3.0`, `rerank-multilingual-v3.0`, `rerank-english-v2.0`, `rerank-multilingual-v2.0` +**model:** `typing.Optional[str]` — The identifier of the model to use, eg `rerank-v3.5`.
@@ -3084,15 +3084,7 @@ client.v2.rerank(
-**model:** `str` - -The identifier of the model to use. - -Supported models: - - `rerank-english-v3.0` - - `rerank-multilingual-v3.0` - - `rerank-english-v2.0` - - `rerank-multilingual-v2.0` +**model:** `str` — The identifier of the model to use, eg `rerank-v3.5`.
diff --git a/src/cohere/base_client.py b/src/cohere/base_client.py index b18ccb2f3..50a638de6 100644 --- a/src/cohere/base_client.py +++ b/src/cohere/base_client.py @@ -2012,7 +2012,7 @@ def rerank( We recommend a maximum of 1,000 documents for optimal endpoint performance. model : typing.Optional[str] - The identifier of the model to use, one of : `rerank-english-v3.0`, `rerank-multilingual-v3.0`, `rerank-english-v2.0`, `rerank-multilingual-v2.0` + The identifier of the model to use, eg `rerank-v3.5`. top_n : typing.Optional[int] The number of most relevant documents or indices to return, defaults to the length of the documents @@ -5047,7 +5047,7 @@ async def rerank( We recommend a maximum of 1,000 documents for optimal endpoint performance. model : typing.Optional[str] - The identifier of the model to use, one of : `rerank-english-v3.0`, `rerank-multilingual-v3.0`, `rerank-english-v2.0`, `rerank-multilingual-v2.0` + The identifier of the model to use, eg `rerank-v3.5`. top_n : typing.Optional[int] The number of most relevant documents or indices to return, defaults to the length of the documents diff --git a/src/cohere/core/client_wrapper.py b/src/cohere/core/client_wrapper.py index 23383e889..fcc6933d6 100644 --- a/src/cohere/core/client_wrapper.py +++ b/src/cohere/core/client_wrapper.py @@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "cohere", - "X-Fern-SDK-Version": "5.13.0", + "X-Fern-SDK-Version": "5.13.1", } if self._client_name is not None: headers["X-Client-Name"] = self._client_name diff --git a/src/cohere/v2/client.py b/src/cohere/v2/client.py index 05b4f4b7a..c62edd8e0 100644 --- a/src/cohere/v2/client.py +++ b/src/cohere/v2/client.py @@ -936,13 +936,7 @@ def rerank( Parameters ---------- model : str - The identifier of the model to use. - - Supported models: - - `rerank-english-v3.0` - - `rerank-multilingual-v3.0` - - `rerank-english-v2.0` - - `rerank-multilingual-v2.0` + The identifier of the model to use, eg `rerank-v3.5`. query : str The search query @@ -2040,13 +2034,7 @@ async def rerank( Parameters ---------- model : str - The identifier of the model to use. - - Supported models: - - `rerank-english-v3.0` - - `rerank-multilingual-v3.0` - - `rerank-english-v2.0` - - `rerank-multilingual-v2.0` + The identifier of the model to use, eg `rerank-v3.5`. query : str The search query