Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5615719

Browse files
committedApr 2, 2025·
SDK regeneration
1 parent 1c70d64 commit 5615719

39 files changed

+1056
-720
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.16.1",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

‎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.16.1",
101+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
243+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
347+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
482+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
605+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
724+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
843+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
964+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
1083+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
1202+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
1314+
"User-Agent": "cohere-ai/7.16.1",
13151315
"X-Fern-Runtime": core.RUNTIME.type,
13161316
"X-Fern-Runtime-Version": core.RUNTIME.version,
13171317
...requestOptions?.headers,

‎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.16.1",
89+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
204+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
317+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
428+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
541+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
665+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
107+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
272+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
382+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
490+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
598+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
75+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
190+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
303+
"User-Agent": "cohere-ai/7.16.1",
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.16.1",
411+
"User-Agent": "cohere-ai/7.16.1",
412412
"X-Fern-Runtime": core.RUNTIME.type,
413413
"X-Fern-Runtime-Version": core.RUNTIME.version,
414414
...requestOptions?.headers,

‎src/api/resources/finetuning/client/Client.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export class Finetuning {
8484
: undefined,
8585
"X-Fern-Language": "JavaScript",
8686
"X-Fern-SDK-Name": "cohere-ai",
87-
"X-Fern-SDK-Version": "7.16.0",
88-
"User-Agent": "cohere-ai/7.16.0",
87+
"X-Fern-SDK-Version": "7.16.1",
88+
"User-Agent": "cohere-ai/7.16.1",
8989
"X-Fern-Runtime": core.RUNTIME.type,
9090
"X-Fern-Runtime-Version": core.RUNTIME.version,
9191
...requestOptions?.headers,
@@ -186,8 +186,8 @@ export class Finetuning {
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.16.1",
190+
"User-Agent": "cohere-ai/7.16.1",
191191
"X-Fern-Runtime": core.RUNTIME.type,
192192
"X-Fern-Runtime-Version": core.RUNTIME.version,
193193
...requestOptions?.headers,
@@ -284,8 +284,8 @@ export class Finetuning {
284284
: undefined,
285285
"X-Fern-Language": "JavaScript",
286286
"X-Fern-SDK-Name": "cohere-ai",
287-
"X-Fern-SDK-Version": "7.16.0",
288-
"User-Agent": "cohere-ai/7.16.0",
287+
"X-Fern-SDK-Version": "7.16.1",
288+
"User-Agent": "cohere-ai/7.16.1",
289289
"X-Fern-Runtime": core.RUNTIME.type,
290290
"X-Fern-Runtime-Version": core.RUNTIME.version,
291291
...requestOptions?.headers,
@@ -377,8 +377,8 @@ export class Finetuning {
377377
: undefined,
378378
"X-Fern-Language": "JavaScript",
379379
"X-Fern-SDK-Name": "cohere-ai",
380-
"X-Fern-SDK-Version": "7.16.0",
381-
"User-Agent": "cohere-ai/7.16.0",
380+
"X-Fern-SDK-Version": "7.16.1",
381+
"User-Agent": "cohere-ai/7.16.1",
382382
"X-Fern-Runtime": core.RUNTIME.type,
383383
"X-Fern-Runtime-Version": core.RUNTIME.version,
384384
...requestOptions?.headers,
@@ -480,8 +480,8 @@ export class Finetuning {
480480
: undefined,
481481
"X-Fern-Language": "JavaScript",
482482
"X-Fern-SDK-Name": "cohere-ai",
483-
"X-Fern-SDK-Version": "7.16.0",
484-
"User-Agent": "cohere-ai/7.16.0",
483+
"X-Fern-SDK-Version": "7.16.1",
484+
"User-Agent": "cohere-ai/7.16.1",
485485
"X-Fern-Runtime": core.RUNTIME.type,
486486
"X-Fern-Runtime-Version": core.RUNTIME.version,
487487
...requestOptions?.headers,
@@ -594,8 +594,8 @@ export class Finetuning {
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.16.1",
598+
"User-Agent": "cohere-ai/7.16.1",
599599
"X-Fern-Runtime": core.RUNTIME.type,
600600
"X-Fern-Runtime-Version": core.RUNTIME.version,
601601
...requestOptions?.headers,
@@ -700,8 +700,8 @@ export class Finetuning {
700700
: undefined,
701701
"X-Fern-Language": "JavaScript",
702702
"X-Fern-SDK-Name": "cohere-ai",
703-
"X-Fern-SDK-Version": "7.16.0",
704-
"User-Agent": "cohere-ai/7.16.0",
703+
"X-Fern-SDK-Version": "7.16.1",
704+
"User-Agent": "cohere-ai/7.16.1",
705705
"X-Fern-Runtime": core.RUNTIME.type,
706706
"X-Fern-Runtime-Version": core.RUNTIME.version,
707707
...requestOptions?.headers,

‎src/api/resources/models/client/Client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export class Models {
7272
: undefined,
7373
"X-Fern-Language": "JavaScript",
7474
"X-Fern-SDK-Name": "cohere-ai",
75-
"X-Fern-SDK-Version": "7.16.0",
76-
"User-Agent": "cohere-ai/7.16.0",
75+
"X-Fern-SDK-Version": "7.16.1",
76+
"User-Agent": "cohere-ai/7.16.1",
7777
"X-Fern-Runtime": core.RUNTIME.type,
7878
"X-Fern-Runtime-Version": core.RUNTIME.version,
7979
...requestOptions?.headers,
@@ -201,8 +201,8 @@ export class Models {
201201
: undefined,
202202
"X-Fern-Language": "JavaScript",
203203
"X-Fern-SDK-Name": "cohere-ai",
204-
"X-Fern-SDK-Version": "7.16.0",
205-
"User-Agent": "cohere-ai/7.16.0",
204+
"X-Fern-SDK-Version": "7.16.1",
205+
"User-Agent": "cohere-ai/7.16.1",
206206
"X-Fern-Runtime": core.RUNTIME.type,
207207
"X-Fern-Runtime-Version": core.RUNTIME.version,
208208
...requestOptions?.headers,

‎src/api/resources/v2/client/Client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class V2 {
5959
: undefined,
6060
"X-Fern-Language": "JavaScript",
6161
"X-Fern-SDK-Name": "cohere-ai",
62-
"X-Fern-SDK-Version": "7.16.0",
63-
"User-Agent": "cohere-ai/7.16.0",
62+
"X-Fern-SDK-Version": "7.16.1",
63+
"User-Agent": "cohere-ai/7.16.1",
6464
"X-Fern-Runtime": core.RUNTIME.type,
6565
"X-Fern-Runtime-Version": core.RUNTIME.version,
6666
...requestOptions?.headers,
@@ -195,8 +195,8 @@ export class V2 {
195195
: undefined,
196196
"X-Fern-Language": "JavaScript",
197197
"X-Fern-SDK-Name": "cohere-ai",
198-
"X-Fern-SDK-Version": "7.16.0",
199-
"User-Agent": "cohere-ai/7.16.0",
198+
"X-Fern-SDK-Version": "7.16.1",
199+
"User-Agent": "cohere-ai/7.16.1",
200200
"X-Fern-Runtime": core.RUNTIME.type,
201201
"X-Fern-Runtime-Version": core.RUNTIME.version,
202202
...requestOptions?.headers,
@@ -322,8 +322,8 @@ export class V2 {
322322
: undefined,
323323
"X-Fern-Language": "JavaScript",
324324
"X-Fern-SDK-Name": "cohere-ai",
325-
"X-Fern-SDK-Version": "7.16.0",
326-
"User-Agent": "cohere-ai/7.16.0",
325+
"X-Fern-SDK-Version": "7.16.1",
326+
"User-Agent": "cohere-ai/7.16.1",
327327
"X-Fern-Runtime": core.RUNTIME.type,
328328
"X-Fern-Runtime-Version": core.RUNTIME.version,
329329
...requestOptions?.headers,
@@ -442,8 +442,8 @@ export class V2 {
442442
: undefined,
443443
"X-Fern-Language": "JavaScript",
444444
"X-Fern-SDK-Name": "cohere-ai",
445-
"X-Fern-SDK-Version": "7.16.0",
446-
"User-Agent": "cohere-ai/7.16.0",
445+
"X-Fern-SDK-Version": "7.16.1",
446+
"User-Agent": "cohere-ai/7.16.1",
447447
"X-Fern-Runtime": core.RUNTIME.type,
448448
"X-Fern-Runtime-Version": core.RUNTIME.version,
449449
...requestOptions?.headers,

‎src/api/resources/v2/client/requests/V2EmbedRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export interface V2EmbedRequest {
3939
*/
4040
model: string;
4141
inputType: Cohere.EmbedInputType;
42+
inputs?: Cohere.EmbedInput[];
43+
outputDimension?: number;
4244
/**
4345
* Specifies the types of embeddings you want to get back. Can be one or more of the following types.
4446
*

‎src/api/types/CitationOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface CitationOptions {
1212
* Defaults to `"accurate"`.
1313
* 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.
1414
*
15-
* **Note**: `command-r7b-12-2024` only supports `"fast"` and `"off"` modes. Its default is `"fast"`.
15+
* **Note**: `command-r7b-12-2024` and `command-a-03-2025` only support `"fast"` and `"off"` modes. The default is `"fast"`.
1616
*/
1717
mode?: Cohere.CitationOptionsMode;
1818
}

‎src/api/types/CitationOptionsMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Defaults to `"accurate"`.
77
* 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.
88
*
9-
* **Note**: `command-r7b-12-2024` only supports `"fast"` and `"off"` modes. Its default is `"fast"`.
9+
* **Note**: `command-r7b-12-2024` and `command-a-03-2025` only support `"fast"` and `"off"` modes. The default is `"fast"`.
1010
*/
1111
export type CitationOptionsMode = "FAST" | "ACCURATE" | "OFF";
1212
export const CitationOptionsMode = {

‎src/api/types/EmbedByTypeResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface EmbedByTypeResponse {
99
/** An object with different embedding types. The length of each embedding type array will be the same as the length of the original `texts` array. */
1010
embeddings: Cohere.EmbedByTypeResponseEmbeddings;
1111
/** The text entries for which embeddings were returned. */
12-
texts: string[];
12+
texts?: string[];
1313
/** The image entries for which embeddings were returned. */
1414
images?: Cohere.Image[];
1515
meta?: Cohere.ApiMeta;

‎src/api/types/EmbedContent.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Cohere from "../index";
6+
7+
export type EmbedContent = Cohere.EmbedContent.ImageUrl | Cohere.EmbedContent.Text;
8+
9+
export namespace EmbedContent {
10+
export interface ImageUrl extends Cohere.EmbedImage {
11+
type: "image_url";
12+
}
13+
14+
export interface Text extends Cohere.EmbedText {
15+
type: "text";
16+
}
17+
}

‎src/api/types/EmbedImage.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Cohere from "../index";
6+
7+
export interface EmbedImage {
8+
image?: Cohere.EmbedImageProperties;
9+
}

‎src/api/types/EmbedImageProperties.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface EmbedImageProperties {
6+
/** Width of the image in pixels */
7+
width?: number;
8+
/** Height of the image in pixels */
9+
height?: number;
10+
/** Format of the image */
11+
format?: string;
12+
/** Bit depth of the image */
13+
bitDepth?: number;
14+
}

‎src/api/types/EmbedInput.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Cohere from "../index";
6+
7+
export interface EmbedInput {
8+
content: Cohere.EmbedContent[];
9+
}

‎src/api/types/EmbedText.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface EmbedText {
6+
text?: string;
7+
}

‎src/api/types/GetModelResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ export interface GetModelResponse {
2222
supportsVision?: boolean;
2323
/** The API endpoints that the model is default to. */
2424
defaultEndpoints?: Cohere.CompatibleEndpoint[];
25+
/** The features that the model supports. */
26+
features?: string[];
2527
}

‎src/api/types/ReasoningEffort.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* The reasoning effort level of the model. This affects the model's performance and the time it takes to generate a response.
7+
*/
8+
export type ReasoningEffort = "low" | "medium" | "high";
9+
export const ReasoningEffort = {
10+
Low: "low",
11+
Medium: "medium",
12+
High: "high",
13+
} as const;

‎src/api/types/TruncationStrategy.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Cohere from "../index";
6+
7+
/**
8+
* Describes the truncation strategy for when the prompt exceeds the context length. Defaults to 'none'
9+
*/
10+
export type TruncationStrategy = Cohere.TruncationStrategy.Auto | Cohere.TruncationStrategy.None;
11+
12+
export namespace TruncationStrategy {
13+
export interface Auto extends Cohere.TruncationStrategyAutoPreserveOrder {
14+
type: "auto";
15+
}
16+
17+
export interface None extends Cohere.TruncationStrategyNone {
18+
type: "none";
19+
}
20+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* If the prompt exceeds the context length, this truncation strategy will continuously omit the oldest tool call and tool result pairs until the prompt fits. If the prompt does not fit with only the last tool call and tool result pair, an error will be returned.
7+
*/
8+
export interface TruncationStrategyAutoPreserveOrder {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* Prohibits any prompt truncation; if the context length is exceeded, an error will be returned.
7+
*/
8+
export interface TruncationStrategyNone {}

‎src/api/types/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ export * from "./ToolMessageV2Content";
9090
export * from "./ToolMessageV2";
9191
export * from "./ChatMessageV2";
9292
export * from "./ChatMessages";
93+
export * from "./ReasoningEffort";
9394
export * from "./ToolV2Function";
9495
export * from "./ToolV2";
9596
export * from "./CitationOptionsMode";
9697
export * from "./CitationOptions";
98+
export * from "./TruncationStrategyAutoPreserveOrder";
99+
export * from "./TruncationStrategyNone";
100+
export * from "./TruncationStrategy";
97101
export * from "./TextResponseFormatV2";
98102
export * from "./JsonResponseFormatV2";
99103
export * from "./ResponseFormatV2";
@@ -153,6 +157,11 @@ export * from "./Image";
153157
export * from "./EmbedFloatsResponse";
154158
export * from "./EmbedByTypeResponseEmbeddings";
155159
export * from "./EmbedByTypeResponse";
160+
export * from "./EmbedImageProperties";
161+
export * from "./EmbedImage";
162+
export * from "./EmbedText";
163+
export * from "./EmbedContent";
164+
export * from "./EmbedInput";
156165
export * from "./EmbedJobStatus";
157166
export * from "./EmbedJobTruncate";
158167
export * from "./EmbedJob";

‎src/serialization/resources/v2/client/requests/V2EmbedRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as serializers from "../../../../index";
66
import * as Cohere from "../../../../../api/index";
77
import * as core from "../../../../../core";
88
import { EmbedInputType } from "../../../../types/EmbedInputType";
9+
import { EmbedInput } from "../../../../types/EmbedInput";
910
import { EmbeddingType } from "../../../../types/EmbeddingType";
1011
import { V2EmbedRequestTruncate } from "../../types/V2EmbedRequestTruncate";
1112

@@ -15,6 +16,8 @@ export const V2EmbedRequest: core.serialization.Schema<serializers.V2EmbedReques
1516
images: core.serialization.list(core.serialization.string()).optional(),
1617
model: core.serialization.string(),
1718
inputType: core.serialization.property("input_type", EmbedInputType),
19+
inputs: core.serialization.list(EmbedInput).optional(),
20+
outputDimension: core.serialization.property("output_dimension", core.serialization.number().optional()),
1821
embeddingTypes: core.serialization.property("embedding_types", core.serialization.list(EmbeddingType)),
1922
truncate: V2EmbedRequestTruncate.optional(),
2023
});
@@ -25,6 +28,8 @@ export declare namespace V2EmbedRequest {
2528
images?: string[] | null;
2629
model: string;
2730
input_type: EmbedInputType.Raw;
31+
inputs?: EmbedInput.Raw[] | null;
32+
output_dimension?: number | null;
2833
embedding_types: EmbeddingType.Raw[];
2934
truncate?: V2EmbedRequestTruncate.Raw | null;
3035
}

‎src/serialization/types/EmbedByTypeResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const EmbedByTypeResponse: core.serialization.ObjectSchema<
1515
> = core.serialization.object({
1616
id: core.serialization.string(),
1717
embeddings: EmbedByTypeResponseEmbeddings,
18-
texts: core.serialization.list(core.serialization.string()),
18+
texts: core.serialization.list(core.serialization.string()).optional(),
1919
images: core.serialization.list(Image).optional(),
2020
meta: ApiMeta.optional(),
2121
});
@@ -24,7 +24,7 @@ export declare namespace EmbedByTypeResponse {
2424
interface Raw {
2525
id: string;
2626
embeddings: EmbedByTypeResponseEmbeddings.Raw;
27-
texts: string[];
27+
texts?: string[] | null;
2828
images?: Image.Raw[] | null;
2929
meta?: ApiMeta.Raw | null;
3030
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
import { EmbedImage } from "./EmbedImage";
9+
import { EmbedText } from "./EmbedText";
10+
11+
export const EmbedContent: core.serialization.Schema<serializers.EmbedContent.Raw, Cohere.EmbedContent> =
12+
core.serialization
13+
.union("type", {
14+
image_url: EmbedImage,
15+
text: EmbedText,
16+
})
17+
.transform<Cohere.EmbedContent>({
18+
transform: (value) => value,
19+
untransform: (value) => value,
20+
});
21+
22+
export declare namespace EmbedContent {
23+
type Raw = EmbedContent.ImageUrl | EmbedContent.Text;
24+
25+
interface ImageUrl extends EmbedImage.Raw {
26+
type: "image_url";
27+
}
28+
29+
interface Text extends EmbedText.Raw {
30+
type: "text";
31+
}
32+
}

‎src/serialization/types/EmbedImage.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
import { EmbedImageProperties } from "./EmbedImageProperties";
9+
10+
export const EmbedImage: core.serialization.ObjectSchema<serializers.EmbedImage.Raw, Cohere.EmbedImage> =
11+
core.serialization.object({
12+
image: EmbedImageProperties.optional(),
13+
});
14+
15+
export declare namespace EmbedImage {
16+
interface Raw {
17+
image?: EmbedImageProperties.Raw | null;
18+
}
19+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
9+
export const EmbedImageProperties: core.serialization.ObjectSchema<
10+
serializers.EmbedImageProperties.Raw,
11+
Cohere.EmbedImageProperties
12+
> = core.serialization.object({
13+
width: core.serialization.number().optional(),
14+
height: core.serialization.number().optional(),
15+
format: core.serialization.string().optional(),
16+
bitDepth: core.serialization.property("bit_depth", core.serialization.number().optional()),
17+
});
18+
19+
export declare namespace EmbedImageProperties {
20+
interface Raw {
21+
width?: number | null;
22+
height?: number | null;
23+
format?: string | null;
24+
bit_depth?: number | null;
25+
}
26+
}

‎src/serialization/types/EmbedInput.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
import { EmbedContent } from "./EmbedContent";
9+
10+
export const EmbedInput: core.serialization.ObjectSchema<serializers.EmbedInput.Raw, Cohere.EmbedInput> =
11+
core.serialization.object({
12+
content: core.serialization.list(EmbedContent),
13+
});
14+
15+
export declare namespace EmbedInput {
16+
interface Raw {
17+
content: EmbedContent.Raw[];
18+
}
19+
}

‎src/serialization/types/EmbedText.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
9+
export const EmbedText: core.serialization.ObjectSchema<serializers.EmbedText.Raw, Cohere.EmbedText> =
10+
core.serialization.object({
11+
text: core.serialization.string().optional(),
12+
});
13+
14+
export declare namespace EmbedText {
15+
interface Raw {
16+
text?: string | null;
17+
}
18+
}

‎src/serialization/types/GetModelResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const GetModelResponse: core.serialization.ObjectSchema<
2121
"default_endpoints",
2222
core.serialization.list(CompatibleEndpoint).optional()
2323
),
24+
features: core.serialization.list(core.serialization.string()).optional(),
2425
});
2526

2627
export declare namespace GetModelResponse {
@@ -32,5 +33,6 @@ export declare namespace GetModelResponse {
3233
tokenizer_url?: string | null;
3334
supports_vision?: boolean | null;
3435
default_endpoints?: CompatibleEndpoint.Raw[] | null;
36+
features?: string[] | null;
3537
}
3638
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
9+
export const ReasoningEffort: core.serialization.Schema<serializers.ReasoningEffort.Raw, Cohere.ReasoningEffort> =
10+
core.serialization.enum_(["low", "medium", "high"]);
11+
12+
export declare namespace ReasoningEffort {
13+
type Raw = "low" | "medium" | "high";
14+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
import { TruncationStrategyAutoPreserveOrder } from "./TruncationStrategyAutoPreserveOrder";
9+
import { TruncationStrategyNone } from "./TruncationStrategyNone";
10+
11+
export const TruncationStrategy: core.serialization.Schema<
12+
serializers.TruncationStrategy.Raw,
13+
Cohere.TruncationStrategy
14+
> = core.serialization
15+
.union("type", {
16+
auto: TruncationStrategyAutoPreserveOrder,
17+
none: TruncationStrategyNone,
18+
})
19+
.transform<Cohere.TruncationStrategy>({
20+
transform: (value) => value,
21+
untransform: (value) => value,
22+
});
23+
24+
export declare namespace TruncationStrategy {
25+
type Raw = TruncationStrategy.Auto | TruncationStrategy.None;
26+
27+
interface Auto extends TruncationStrategyAutoPreserveOrder.Raw {
28+
type: "auto";
29+
}
30+
31+
interface None extends TruncationStrategyNone.Raw {
32+
type: "none";
33+
}
34+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
9+
export const TruncationStrategyAutoPreserveOrder: core.serialization.ObjectSchema<
10+
serializers.TruncationStrategyAutoPreserveOrder.Raw,
11+
Cohere.TruncationStrategyAutoPreserveOrder
12+
> = core.serialization.object({});
13+
14+
export declare namespace TruncationStrategyAutoPreserveOrder {
15+
interface Raw {}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../index";
6+
import * as Cohere from "../../api/index";
7+
import * as core from "../../core";
8+
9+
export const TruncationStrategyNone: core.serialization.ObjectSchema<
10+
serializers.TruncationStrategyNone.Raw,
11+
Cohere.TruncationStrategyNone
12+
> = core.serialization.object({});
13+
14+
export declare namespace TruncationStrategyNone {
15+
interface Raw {}
16+
}

‎src/serialization/types/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ export * from "./ToolMessageV2Content";
9090
export * from "./ToolMessageV2";
9191
export * from "./ChatMessageV2";
9292
export * from "./ChatMessages";
93+
export * from "./ReasoningEffort";
9394
export * from "./ToolV2Function";
9495
export * from "./ToolV2";
9596
export * from "./CitationOptionsMode";
9697
export * from "./CitationOptions";
98+
export * from "./TruncationStrategyAutoPreserveOrder";
99+
export * from "./TruncationStrategyNone";
100+
export * from "./TruncationStrategy";
97101
export * from "./TextResponseFormatV2";
98102
export * from "./JsonResponseFormatV2";
99103
export * from "./ResponseFormatV2";
@@ -153,6 +157,11 @@ export * from "./Image";
153157
export * from "./EmbedFloatsResponse";
154158
export * from "./EmbedByTypeResponseEmbeddings";
155159
export * from "./EmbedByTypeResponse";
160+
export * from "./EmbedImageProperties";
161+
export * from "./EmbedImage";
162+
export * from "./EmbedText";
163+
export * from "./EmbedContent";
164+
export * from "./EmbedInput";
156165
export * from "./EmbedJobStatus";
157166
export * from "./EmbedJobTruncate";
158167
export * from "./EmbedJob";

‎src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "7.16.0";
1+
export const SDK_VERSION = "7.16.1";

‎yarn.lock

Lines changed: 642 additions & 634 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.