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
Copy file name to clipboardexpand all lines: reference.md
+12-4
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_
223
223
224
224
With `prompt_truncation` set to "OFF", no elements will be dropped. If the sum of the inputs exceeds the model's context length limit, a `TooManyTokens` error will be returned.
@@ -537,6 +537,8 @@ Safety modes are not yet configurable in combination with `tools`, `tool_results
537
537
538
538
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
539
539
540
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
@@ -708,7 +710,7 @@ With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_
708
710
709
711
With `prompt_truncation` set to "OFF", no elements will be dropped. If the sum of the inputs exceeds the model's context length limit, a `TooManyTokens` error will be returned.
@@ -1022,6 +1024,8 @@ Safety modes are not yet configurable in combination with `tools`, `tool_results
1022
1024
1023
1025
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
1024
1026
1027
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
@@ -2431,7 +2435,7 @@ When `tools` is passed (without `tool_results`), the `text` content in the respo
2431
2435
2432
2436
**strict_tools:**`typing.Optional[bool]`
2433
2437
2434
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
2438
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
2435
2439
2436
2440
**Note**: The first few requests with a new set of tools will take longer to process.
2437
2441
@@ -2476,6 +2480,8 @@ Safety modes are not yet configurable in combination with `tools`, `tool_results
2476
2480
2477
2481
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
2478
2482
2483
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
2484
+
2479
2485
2480
2486
</dd>
2481
2487
</dl>
@@ -2701,7 +2707,7 @@ When `tools` is passed (without `tool_results`), the `text` content in the respo
2701
2707
2702
2708
**strict_tools:**`typing.Optional[bool]`
2703
2709
2704
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
2710
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
2705
2711
2706
2712
**Note**: The first few requests with a new set of tools will take longer to process.
2707
2713
@@ -2746,6 +2752,8 @@ Safety modes are not yet configurable in combination with `tools`, `tool_results
2746
2752
2747
2753
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
2748
2754
2755
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
Copy file name to clipboardexpand all lines: src/cohere/base_client.py
+8
Original file line number
Diff line number
Diff line change
@@ -423,6 +423,8 @@ def chat_stream(
423
423
424
424
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
425
425
426
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
976
978
979
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
3420
3424
3425
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer.
3979
3985
3986
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
Copy file name to clipboardexpand all lines: src/cohere/types/citation_options.py
+2
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ class CitationOptions(UncheckedBaseModel):
16
16
"""
17
17
Defaults to `"accurate"`.
18
18
Dictates the approach taken to generating citations as part of the RAG flow by allowing the user to specify whether they want `"accurate"` results, `"fast"` results or no results.
19
+
20
+
**Note**: `command-r7b-12-2024` only supports `"fast"` and `"off"` modes. Its default is `"fast"`.
Copy file name to clipboardexpand all lines: src/cohere/v2/client.py
+12-4
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ def chat_stream(
92
92
93
93
94
94
strict_tools : typing.Optional[bool]
95
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
95
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
96
96
97
97
**Note**: The first few requests with a new set of tools will take longer to process.
98
98
@@ -113,6 +113,8 @@ def chat_stream(
113
113
114
114
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
115
115
116
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
117
+
116
118
117
119
max_tokens : typing.Optional[int]
118
120
The maximum number of tokens the model will generate as part of the response.
@@ -436,7 +438,7 @@ def chat(
436
438
437
439
438
440
strict_tools : typing.Optional[bool]
439
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
441
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
440
442
441
443
**Note**: The first few requests with a new set of tools will take longer to process.
442
444
@@ -457,6 +459,8 @@ def chat(
457
459
458
460
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
459
461
462
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
463
+
460
464
461
465
max_tokens : typing.Optional[int]
462
466
The maximum number of tokens the model will generate as part of the response.
@@ -1166,7 +1170,7 @@ async def chat_stream(
1166
1170
1167
1171
1168
1172
strict_tools : typing.Optional[bool]
1169
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
1173
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
1170
1174
1171
1175
**Note**: The first few requests with a new set of tools will take longer to process.
1172
1176
@@ -1187,6 +1191,8 @@ async def chat_stream(
1187
1191
1188
1192
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
1189
1193
1194
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
1195
+
1190
1196
1191
1197
max_tokens : typing.Optional[int]
1192
1198
The maximum number of tokens the model will generate as part of the response.
@@ -1518,7 +1524,7 @@ async def chat(
1518
1524
1519
1525
1520
1526
strict_tools : typing.Optional[bool]
1521
-
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
1527
+
When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Structured Outputs (Tools) guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).
1522
1528
1523
1529
**Note**: The first few requests with a new set of tools will take longer to process.
1524
1530
@@ -1539,6 +1545,8 @@ async def chat(
1539
1545
1540
1546
**Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer.
1541
1547
1548
+
**Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
1549
+
1542
1550
1543
1551
max_tokens : typing.Optional[int]
1544
1552
The maximum number of tokens the model will generate as part of the response.
0 commit comments