You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
993
993
</Warning>
994
994
Generates realistic text conditioned on a given input.
995
995
</dd>
@@ -2493,7 +2493,7 @@ Used to control whether or not the model will be forced to use a tool when answe
2493
2493
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
2494
2494
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
2495
2495
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.
2497
2497
2498
2498
**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`.
2499
2499
@@ -2782,7 +2782,7 @@ Used to control whether or not the model will be forced to use a tool when answe
2782
2782
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
2783
2783
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
2784
2784
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.
2786
2786
2787
2787
**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`.
Copy file name to clipboardexpand all lines: src/cohere/base_client.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -1146,7 +1146,7 @@ def generate_stream(
1146
1146
) ->typing.Iterator[GenerateStreamedResponse]:
1147
1147
"""
1148
1148
<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.
1150
1150
</Warning>
1151
1151
Generates realistic text conditioned on a given input.
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.
4215
4215
</Warning>
4216
4216
Generates realistic text conditioned on a given input.
Copy file name to clipboardexpand all lines: src/cohere/v2/client.py
+4-4
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ def chat_stream(
172
172
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
173
173
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
174
174
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.
176
176
177
177
**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`.
178
178
@@ -511,7 +511,7 @@ def chat(
511
511
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
512
512
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
513
513
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.
515
515
516
516
**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`.
517
517
@@ -1294,7 +1294,7 @@ async def chat_stream(
1294
1294
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
1295
1295
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
1296
1296
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.
1298
1298
1299
1299
**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`.
1300
1300
@@ -1641,7 +1641,7 @@ async def chat(
1641
1641
When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
1642
1642
If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
1643
1643
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.
1645
1645
1646
1646
**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`.
0 commit comments