Skip to content

Commit

Permalink
🌿 Fern Regeneration -- December 3, 2024 (#612)
Browse files Browse the repository at this point in the history
* SDK regeneration

* Fixes

* lock

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Billy Trend <[email protected]>
  • Loading branch information
fern-api[bot] and billytrend-cohere authored Dec 3, 2024
1 parent 066bf3d commit 5f7c580
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cohere"
version = "5.13.0"
version = "5.13.1"
description = ""
readme = "README.md"
authors = []
Expand Down
12 changes: 2 additions & 10 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ We recommend a maximum of 1,000 documents for optimal endpoint performance.
<dl>
<dd>

**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`.

</dd>
</dl>
Expand Down Expand Up @@ -3084,15 +3084,7 @@ client.v2.rerank(
<dl>
<dd>

**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`.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/cohere/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cohere/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 2 additions & 14 deletions src/cohere/v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f7c580

Please sign in to comment.