Skip to content

Commit d427a0a

Browse files
🌿 Fern Regeneration -- April 15, 2025 (#223)
* SDK regeneration * Revert yarn lock * Fix snap * Fix test --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Billy Trend <billy@cohere.com>
1 parent 1c70d64 commit d427a0a

Some content is hidden

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

48 files changed

+438
-112
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cohere-ai",
3-
"version": "7.16.0",
3+
"version": "7.17.0",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ Returns the details of a model, provided its name.
13551355
<dd>
13561356

13571357
```typescript
1358-
await client.models.get("command-r");
1358+
await client.models.get("command-a-03-2025");
13591359
```
13601360

13611361
</dd>

src/Client.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class CohereClient {
9797
: undefined,
9898
"X-Fern-Language": "JavaScript",
9999
"X-Fern-SDK-Name": "cohere-ai",
100-
"X-Fern-SDK-Version": "7.16.0",
101-
"User-Agent": "cohere-ai/7.16.0",
100+
"X-Fern-SDK-Version": "7.17.0",
101+
"User-Agent": "cohere-ai/7.17.0",
102102
"X-Fern-Runtime": core.RUNTIME.type,
103103
"X-Fern-Runtime-Version": core.RUNTIME.version,
104104
Accepts: accepts != null ? accepts : undefined,
@@ -239,8 +239,8 @@ export class CohereClient {
239239
: undefined,
240240
"X-Fern-Language": "JavaScript",
241241
"X-Fern-SDK-Name": "cohere-ai",
242-
"X-Fern-SDK-Version": "7.16.0",
243-
"User-Agent": "cohere-ai/7.16.0",
242+
"X-Fern-SDK-Version": "7.17.0",
243+
"User-Agent": "cohere-ai/7.17.0",
244244
"X-Fern-Runtime": core.RUNTIME.type,
245245
"X-Fern-Runtime-Version": core.RUNTIME.version,
246246
Accepts: accepts != null ? accepts : undefined,
@@ -343,8 +343,8 @@ export class CohereClient {
343343
: undefined,
344344
"X-Fern-Language": "JavaScript",
345345
"X-Fern-SDK-Name": "cohere-ai",
346-
"X-Fern-SDK-Version": "7.16.0",
347-
"User-Agent": "cohere-ai/7.16.0",
346+
"X-Fern-SDK-Version": "7.17.0",
347+
"User-Agent": "cohere-ai/7.17.0",
348348
"X-Fern-Runtime": core.RUNTIME.type,
349349
"X-Fern-Runtime-Version": core.RUNTIME.version,
350350
...requestOptions?.headers,
@@ -478,8 +478,8 @@ export class CohereClient {
478478
: undefined,
479479
"X-Fern-Language": "JavaScript",
480480
"X-Fern-SDK-Name": "cohere-ai",
481-
"X-Fern-SDK-Version": "7.16.0",
482-
"User-Agent": "cohere-ai/7.16.0",
481+
"X-Fern-SDK-Version": "7.17.0",
482+
"User-Agent": "cohere-ai/7.17.0",
483483
"X-Fern-Runtime": core.RUNTIME.type,
484484
"X-Fern-Runtime-Version": core.RUNTIME.version,
485485
...requestOptions?.headers,
@@ -601,8 +601,8 @@ export class CohereClient {
601601
: undefined,
602602
"X-Fern-Language": "JavaScript",
603603
"X-Fern-SDK-Name": "cohere-ai",
604-
"X-Fern-SDK-Version": "7.16.0",
605-
"User-Agent": "cohere-ai/7.16.0",
604+
"X-Fern-SDK-Version": "7.17.0",
605+
"User-Agent": "cohere-ai/7.17.0",
606606
"X-Fern-Runtime": core.RUNTIME.type,
607607
"X-Fern-Runtime-Version": core.RUNTIME.version,
608608
...requestOptions?.headers,
@@ -720,8 +720,8 @@ export class CohereClient {
720720
: undefined,
721721
"X-Fern-Language": "JavaScript",
722722
"X-Fern-SDK-Name": "cohere-ai",
723-
"X-Fern-SDK-Version": "7.16.0",
724-
"User-Agent": "cohere-ai/7.16.0",
723+
"X-Fern-SDK-Version": "7.17.0",
724+
"User-Agent": "cohere-ai/7.17.0",
725725
"X-Fern-Runtime": core.RUNTIME.type,
726726
"X-Fern-Runtime-Version": core.RUNTIME.version,
727727
...requestOptions?.headers,
@@ -839,8 +839,8 @@ export class CohereClient {
839839
: undefined,
840840
"X-Fern-Language": "JavaScript",
841841
"X-Fern-SDK-Name": "cohere-ai",
842-
"X-Fern-SDK-Version": "7.16.0",
843-
"User-Agent": "cohere-ai/7.16.0",
842+
"X-Fern-SDK-Version": "7.17.0",
843+
"User-Agent": "cohere-ai/7.17.0",
844844
"X-Fern-Runtime": core.RUNTIME.type,
845845
"X-Fern-Runtime-Version": core.RUNTIME.version,
846846
...requestOptions?.headers,
@@ -960,8 +960,8 @@ export class CohereClient {
960960
: undefined,
961961
"X-Fern-Language": "JavaScript",
962962
"X-Fern-SDK-Name": "cohere-ai",
963-
"X-Fern-SDK-Version": "7.16.0",
964-
"User-Agent": "cohere-ai/7.16.0",
963+
"X-Fern-SDK-Version": "7.17.0",
964+
"User-Agent": "cohere-ai/7.17.0",
965965
"X-Fern-Runtime": core.RUNTIME.type,
966966
"X-Fern-Runtime-Version": core.RUNTIME.version,
967967
...requestOptions?.headers,
@@ -1079,8 +1079,8 @@ export class CohereClient {
10791079
: undefined,
10801080
"X-Fern-Language": "JavaScript",
10811081
"X-Fern-SDK-Name": "cohere-ai",
1082-
"X-Fern-SDK-Version": "7.16.0",
1083-
"User-Agent": "cohere-ai/7.16.0",
1082+
"X-Fern-SDK-Version": "7.17.0",
1083+
"User-Agent": "cohere-ai/7.17.0",
10841084
"X-Fern-Runtime": core.RUNTIME.type,
10851085
"X-Fern-Runtime-Version": core.RUNTIME.version,
10861086
...requestOptions?.headers,
@@ -1198,8 +1198,8 @@ export class CohereClient {
11981198
: undefined,
11991199
"X-Fern-Language": "JavaScript",
12001200
"X-Fern-SDK-Name": "cohere-ai",
1201-
"X-Fern-SDK-Version": "7.16.0",
1202-
"User-Agent": "cohere-ai/7.16.0",
1201+
"X-Fern-SDK-Version": "7.17.0",
1202+
"User-Agent": "cohere-ai/7.17.0",
12031203
"X-Fern-Runtime": core.RUNTIME.type,
12041204
"X-Fern-Runtime-Version": core.RUNTIME.version,
12051205
...requestOptions?.headers,
@@ -1310,8 +1310,8 @@ export class CohereClient {
13101310
: undefined,
13111311
"X-Fern-Language": "JavaScript",
13121312
"X-Fern-SDK-Name": "cohere-ai",
1313-
"X-Fern-SDK-Version": "7.16.0",
1314-
"User-Agent": "cohere-ai/7.16.0",
1313+
"X-Fern-SDK-Version": "7.17.0",
1314+
"User-Agent": "cohere-ai/7.17.0",
13151315
"X-Fern-Runtime": core.RUNTIME.type,
13161316
"X-Fern-Runtime-Version": core.RUNTIME.version,
13171317
...requestOptions?.headers,

src/api/client/requests/ChatRequest.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export interface ChatRequest {
3030
*/
3131
message: string;
3232
/**
33-
* Defaults to `command-r-plus-08-2024`.
34-
*
3533
* The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
3634
*
3735
* Compatible Deployments: Cohere Platform, Private Deployments
@@ -269,9 +267,9 @@ export interface ChatRequest {
269267
*
270268
* Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
271269
*
272-
* **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.
270+
* **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release).
273271
*
274-
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
272+
* **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes.
275273
*
276274
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
277275
*

src/api/client/requests/ChatStreamRequest.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export interface ChatStreamRequest {
3030
*/
3131
message: string;
3232
/**
33-
* Defaults to `command-r-plus-08-2024`.
34-
*
3533
* The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
3634
*
3735
* Compatible Deployments: Cohere Platform, Private Deployments
@@ -269,9 +267,9 @@ export interface ChatStreamRequest {
269267
*
270268
* Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
271269
*
272-
* **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.
270+
* **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release).
273271
*
274-
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
272+
* **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes.
275273
*
276274
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
277275
*

src/api/client/requests/ClassifyRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface ClassifyRequest {
2222
* Note: [Fine-tuned Models](https://docs.cohere.com/docs/classify-fine-tuning) trained on classification examples don't require the `examples` parameter to be passed in explicitly.
2323
*/
2424
examples?: Cohere.ClassifyExample[];
25-
/** The identifier of the model. Currently available models are `embed-multilingual-v2.0`, `embed-english-light-v2.0`, and `embed-english-v2.0` (default). Smaller "light" models are faster, while larger models will perform better. [Fine-tuned models](https://docs.cohere.com/docs/fine-tuning) can also be supplied with their full ID. */
25+
/** ID of a [Fine-tuned](https://docs.cohere.com/v2/docs/classify-starting-the-training) Classify model */
2626
model?: string;
2727
/** The ID of a custom playground preset. You can create presets in the [playground](https://dashboard.cohere.com/playground/classify?model=large). If you use a preset, all other parameters become optional, and any included parameters will override the preset's parameters. */
2828
preset?: string;

src/api/resources/connectors/client/Client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export class Connectors {
8585
: undefined,
8686
"X-Fern-Language": "JavaScript",
8787
"X-Fern-SDK-Name": "cohere-ai",
88-
"X-Fern-SDK-Version": "7.16.0",
89-
"User-Agent": "cohere-ai/7.16.0",
88+
"X-Fern-SDK-Version": "7.17.0",
89+
"User-Agent": "cohere-ai/7.17.0",
9090
"X-Fern-Runtime": core.RUNTIME.type,
9191
"X-Fern-Runtime-Version": core.RUNTIME.version,
9292
...requestOptions?.headers,
@@ -200,8 +200,8 @@ export class Connectors {
200200
: undefined,
201201
"X-Fern-Language": "JavaScript",
202202
"X-Fern-SDK-Name": "cohere-ai",
203-
"X-Fern-SDK-Version": "7.16.0",
204-
"User-Agent": "cohere-ai/7.16.0",
203+
"X-Fern-SDK-Version": "7.17.0",
204+
"User-Agent": "cohere-ai/7.17.0",
205205
"X-Fern-Runtime": core.RUNTIME.type,
206206
"X-Fern-Runtime-Version": core.RUNTIME.version,
207207
...requestOptions?.headers,
@@ -313,8 +313,8 @@ export class Connectors {
313313
: undefined,
314314
"X-Fern-Language": "JavaScript",
315315
"X-Fern-SDK-Name": "cohere-ai",
316-
"X-Fern-SDK-Version": "7.16.0",
317-
"User-Agent": "cohere-ai/7.16.0",
316+
"X-Fern-SDK-Version": "7.17.0",
317+
"User-Agent": "cohere-ai/7.17.0",
318318
"X-Fern-Runtime": core.RUNTIME.type,
319319
"X-Fern-Runtime-Version": core.RUNTIME.version,
320320
...requestOptions?.headers,
@@ -424,8 +424,8 @@ export class Connectors {
424424
: undefined,
425425
"X-Fern-Language": "JavaScript",
426426
"X-Fern-SDK-Name": "cohere-ai",
427-
"X-Fern-SDK-Version": "7.16.0",
428-
"User-Agent": "cohere-ai/7.16.0",
427+
"X-Fern-SDK-Version": "7.17.0",
428+
"User-Agent": "cohere-ai/7.17.0",
429429
"X-Fern-Runtime": core.RUNTIME.type,
430430
"X-Fern-Runtime-Version": core.RUNTIME.version,
431431
...requestOptions?.headers,
@@ -537,8 +537,8 @@ export class Connectors {
537537
: undefined,
538538
"X-Fern-Language": "JavaScript",
539539
"X-Fern-SDK-Name": "cohere-ai",
540-
"X-Fern-SDK-Version": "7.16.0",
541-
"User-Agent": "cohere-ai/7.16.0",
540+
"X-Fern-SDK-Version": "7.17.0",
541+
"User-Agent": "cohere-ai/7.17.0",
542542
"X-Fern-Runtime": core.RUNTIME.type,
543543
"X-Fern-Runtime-Version": core.RUNTIME.version,
544544
...requestOptions?.headers,
@@ -661,8 +661,8 @@ export class Connectors {
661661
: undefined,
662662
"X-Fern-Language": "JavaScript",
663663
"X-Fern-SDK-Name": "cohere-ai",
664-
"X-Fern-SDK-Version": "7.16.0",
665-
"User-Agent": "cohere-ai/7.16.0",
664+
"X-Fern-SDK-Version": "7.17.0",
665+
"User-Agent": "cohere-ai/7.17.0",
666666
"X-Fern-Runtime": core.RUNTIME.type,
667667
"X-Fern-Runtime-Version": core.RUNTIME.version,
668668
...requestOptions?.headers,

src/api/resources/datasets/client/Client.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export class Datasets {
103103
: undefined,
104104
"X-Fern-Language": "JavaScript",
105105
"X-Fern-SDK-Name": "cohere-ai",
106-
"X-Fern-SDK-Version": "7.16.0",
107-
"User-Agent": "cohere-ai/7.16.0",
106+
"X-Fern-SDK-Version": "7.17.0",
107+
"User-Agent": "cohere-ai/7.17.0",
108108
"X-Fern-Runtime": core.RUNTIME.type,
109109
"X-Fern-Runtime-Version": core.RUNTIME.version,
110110
...requestOptions?.headers,
@@ -268,8 +268,8 @@ export class Datasets {
268268
: undefined,
269269
"X-Fern-Language": "JavaScript",
270270
"X-Fern-SDK-Name": "cohere-ai",
271-
"X-Fern-SDK-Version": "7.16.0",
272-
"User-Agent": "cohere-ai/7.16.0",
271+
"X-Fern-SDK-Version": "7.17.0",
272+
"User-Agent": "cohere-ai/7.17.0",
273273
"X-Fern-Runtime": core.RUNTIME.type,
274274
"X-Fern-Runtime-Version": core.RUNTIME.version,
275275
..._maybeEncodedRequest.headers,
@@ -378,8 +378,8 @@ export class Datasets {
378378
: undefined,
379379
"X-Fern-Language": "JavaScript",
380380
"X-Fern-SDK-Name": "cohere-ai",
381-
"X-Fern-SDK-Version": "7.16.0",
382-
"User-Agent": "cohere-ai/7.16.0",
381+
"X-Fern-SDK-Version": "7.17.0",
382+
"User-Agent": "cohere-ai/7.17.0",
383383
"X-Fern-Runtime": core.RUNTIME.type,
384384
"X-Fern-Runtime-Version": core.RUNTIME.version,
385385
...requestOptions?.headers,
@@ -486,8 +486,8 @@ export class Datasets {
486486
: undefined,
487487
"X-Fern-Language": "JavaScript",
488488
"X-Fern-SDK-Name": "cohere-ai",
489-
"X-Fern-SDK-Version": "7.16.0",
490-
"User-Agent": "cohere-ai/7.16.0",
489+
"X-Fern-SDK-Version": "7.17.0",
490+
"User-Agent": "cohere-ai/7.17.0",
491491
"X-Fern-Runtime": core.RUNTIME.type,
492492
"X-Fern-Runtime-Version": core.RUNTIME.version,
493493
...requestOptions?.headers,
@@ -594,8 +594,8 @@ export class Datasets {
594594
: undefined,
595595
"X-Fern-Language": "JavaScript",
596596
"X-Fern-SDK-Name": "cohere-ai",
597-
"X-Fern-SDK-Version": "7.16.0",
598-
"User-Agent": "cohere-ai/7.16.0",
597+
"X-Fern-SDK-Version": "7.17.0",
598+
"User-Agent": "cohere-ai/7.17.0",
599599
"X-Fern-Runtime": core.RUNTIME.type,
600600
"X-Fern-Runtime-Version": core.RUNTIME.version,
601601
...requestOptions?.headers,

src/api/resources/embedJobs/client/Client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export class EmbedJobs {
7171
: undefined,
7272
"X-Fern-Language": "JavaScript",
7373
"X-Fern-SDK-Name": "cohere-ai",
74-
"X-Fern-SDK-Version": "7.16.0",
75-
"User-Agent": "cohere-ai/7.16.0",
74+
"X-Fern-SDK-Version": "7.17.0",
75+
"User-Agent": "cohere-ai/7.17.0",
7676
"X-Fern-Runtime": core.RUNTIME.type,
7777
"X-Fern-Runtime-Version": core.RUNTIME.version,
7878
...requestOptions?.headers,
@@ -186,8 +186,8 @@ export class EmbedJobs {
186186
: undefined,
187187
"X-Fern-Language": "JavaScript",
188188
"X-Fern-SDK-Name": "cohere-ai",
189-
"X-Fern-SDK-Version": "7.16.0",
190-
"User-Agent": "cohere-ai/7.16.0",
189+
"X-Fern-SDK-Version": "7.17.0",
190+
"User-Agent": "cohere-ai/7.17.0",
191191
"X-Fern-Runtime": core.RUNTIME.type,
192192
"X-Fern-Runtime-Version": core.RUNTIME.version,
193193
...requestOptions?.headers,
@@ -299,8 +299,8 @@ export class EmbedJobs {
299299
: undefined,
300300
"X-Fern-Language": "JavaScript",
301301
"X-Fern-SDK-Name": "cohere-ai",
302-
"X-Fern-SDK-Version": "7.16.0",
303-
"User-Agent": "cohere-ai/7.16.0",
302+
"X-Fern-SDK-Version": "7.17.0",
303+
"User-Agent": "cohere-ai/7.17.0",
304304
"X-Fern-Runtime": core.RUNTIME.type,
305305
"X-Fern-Runtime-Version": core.RUNTIME.version,
306306
...requestOptions?.headers,
@@ -407,8 +407,8 @@ export class EmbedJobs {
407407
: undefined,
408408
"X-Fern-Language": "JavaScript",
409409
"X-Fern-SDK-Name": "cohere-ai",
410-
"X-Fern-SDK-Version": "7.16.0",
411-
"User-Agent": "cohere-ai/7.16.0",
410+
"X-Fern-SDK-Version": "7.17.0",
411+
"User-Agent": "cohere-ai/7.17.0",
412412
"X-Fern-Runtime": core.RUNTIME.type,
413413
"X-Fern-Runtime-Version": core.RUNTIME.version,
414414
...requestOptions?.headers,

0 commit comments

Comments
 (0)