Skip to content

Commit 7d87482

Browse files
🌿 Fern Regeneration -- February 6, 2025 (#648)
* 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 17572b6 commit 7d87482

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

poetry.lock

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cohere"
33

44
[tool.poetry]
55
name = "cohere"
6-
version = "5.13.11"
6+
version = "5.13.12"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private D
989989
<dd>
990990

991991
<Warning>
992-
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
992+
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat with Streaming API.
993993
</Warning>
994994
Generates realistic text conditioned on a given input.
995995
</dd>
@@ -2493,7 +2493,7 @@ Used to control whether or not the model will be forced to use a tool when answe
24932493
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
24942494
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
24952495

2496-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
2496+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
24972497

24982498
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
24992499

@@ -2782,7 +2782,7 @@ Used to control whether or not the model will be forced to use a tool when answe
27822782
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
27832783
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
27842784

2785-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
2785+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
27862786

27872787
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
27882788

src/cohere/base_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ def generate_stream(
11461146
) -> typing.Iterator[GenerateStreamedResponse]:
11471147
"""
11481148
<Warning>
1149-
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
1149+
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat with Streaming API.
11501150
</Warning>
11511151
Generates realistic text conditioned on a given input.
11521152
@@ -4211,7 +4211,7 @@ async def generate_stream(
42114211
) -> typing.AsyncIterator[GenerateStreamedResponse]:
42124212
"""
42134213
<Warning>
4214-
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
4214+
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat with Streaming API.
42154215
</Warning>
42164216
Generates realistic text conditioned on a given input.
42174217

src/cohere/core/client_wrapper.py

+1-1
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.13.11",
27+
"X-Fern-SDK-Version": "5.13.12",
2828
}
2929
if self._client_name is not None:
3030
headers["X-Client-Name"] = self._client_name

src/cohere/v2/client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def chat_stream(
172172
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
173173
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
174174
175-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
175+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
176176
177177
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
178178
@@ -511,7 +511,7 @@ def chat(
511511
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
512512
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
513513
514-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
514+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
515515
516516
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
517517
@@ -1294,7 +1294,7 @@ async def chat_stream(
12941294
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
12951295
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
12961296
1297-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
1297+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
12981298
12991299
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
13001300
@@ -1641,7 +1641,7 @@ async def chat(
16411641
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
16421642
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
16431643
1644-
**Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
1644+
**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
16451645
16461646
**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
16471647

0 commit comments

Comments
 (0)