Skip to content

Commit 8a9b556

Browse files
🌿 Fern Regeneration -- October 28, 2024 (#595)
* SDK regeneration * Fixes --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Billy Trend <[email protected]>
1 parent 5160d82 commit 8a9b556

File tree

179 files changed

+322
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+322
-456
lines changed

poetry.lock

Lines changed: 40 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cohere"
3-
version = "5.11.1"
3+
version = "5.11.2"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Compatible Deployments:
236236

237237
**connectors:** `typing.Optional[typing.Sequence[ChatConnector]]`
238238

239-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
239+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
240240

241241
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
242242

@@ -721,7 +721,7 @@ Compatible Deployments:
721721

722722
**connectors:** `typing.Optional[typing.Sequence[ChatConnector]]`
723723

724-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
724+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
725725

726726
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
727727

@@ -1584,9 +1584,9 @@ If `ALL` is selected, the token likelihoods will be provided both for the prompt
15841584
<dl>
15851585
<dd>
15861586

1587-
This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.
1587+
This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.
15881588

1589-
Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
1589+
Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
15901590

15911591
If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](/docs/semantic-search).
15921592
</dd>
@@ -4015,7 +4015,7 @@ client.connectors.list()
40154015
<dl>
40164016
<dd>
40174017

4018-
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/docs/creating-and-deploying-a-connector) for more information.
4018+
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) for more information.
40194019
</dd>
40204020
</dl>
40214021
</dd>

src/cohere/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
Generation,
139139
GetConnectorResponse,
140140
GetModelResponse,
141+
Image,
141142
JsonObjectResponseFormat,
142143
JsonObjectResponseFormatV2,
143144
JsonResponseFormat,
@@ -421,6 +422,7 @@
421422
"Generation",
422423
"GetConnectorResponse",
423424
"GetModelResponse",
425+
"Image",
424426
"InternalServerError",
425427
"JsonObjectResponseFormat",
426428
"JsonObjectResponseFormatV2",

src/cohere/base_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def chat_stream(
250250
251251
252252
connectors : typing.Optional[typing.Sequence[ChatConnector]]
253-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
253+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
254254
255255
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
256256
@@ -801,7 +801,7 @@ def chat(
801801
802802
803803
connectors : typing.Optional[typing.Sequence[ChatConnector]]
804-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
804+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
805805
806806
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
807807
@@ -1777,9 +1777,9 @@ def embed(
17771777
request_options: typing.Optional[RequestOptions] = None,
17781778
) -> EmbedResponse:
17791779
"""
1780-
This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.
1780+
This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.
17811781
1782-
Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
1782+
Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
17831783
17841784
If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](/docs/semantic-search).
17851785
@@ -3245,7 +3245,7 @@ async def chat_stream(
32453245
32463246
32473247
connectors : typing.Optional[typing.Sequence[ChatConnector]]
3248-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
3248+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
32493249
32503250
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
32513251
@@ -3804,7 +3804,7 @@ async def chat(
38043804
38053805
38063806
connectors : typing.Optional[typing.Sequence[ChatConnector]]
3807-
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
3807+
Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) one.
38083808
38093809
When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
38103810
@@ -4804,9 +4804,9 @@ async def embed(
48044804
request_options: typing.Optional[RequestOptions] = None,
48054805
) -> EmbedResponse:
48064806
"""
4807-
This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.
4807+
This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.
48084808
4809-
Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
4809+
Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.
48104810
48114811
If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](/docs/semantic-search).
48124812

src/cohere/connectors/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def create(
225225
request_options: typing.Optional[RequestOptions] = None,
226226
) -> CreateConnectorResponse:
227227
"""
228-
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/docs/creating-and-deploying-a-connector) for more information.
228+
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) for more information.
229229
230230
Parameters
231231
----------
@@ -1303,7 +1303,7 @@ async def create(
13031303
request_options: typing.Optional[RequestOptions] = None,
13041304
) -> CreateConnectorResponse:
13051305
"""
1306-
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/docs/creating-and-deploying-a-connector) for more information.
1306+
Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) for more information.
13071307
13081308
Parameters
13091309
----------

src/cohere/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
2525
"X-Fern-Language": "Python",
2626
"X-Fern-SDK-Name": "cohere",
27-
"X-Fern-SDK-Version": "5.11.1",
27+
"X-Fern-SDK-Version": "5.11.2",
2828
}
2929
if self._client_name is not None:
3030
headers["X-Client-Name"] = self._client_name

0 commit comments

Comments
 (0)