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 7b6b90d

Browse files
committedFeb 28, 2025·
SDK regeneration
1 parent 2375993 commit 7b6b90d

34 files changed

+800
-722
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.15.4",
3+
"version": "7.16.0",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

‎src/Client.ts

Lines changed: 23 additions & 23 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.15.4",
101-
"User-Agent": "cohere-ai/7.15.4",
100+
"X-Fern-SDK-Version": "7.16.0",
101+
"User-Agent": "cohere-ai/7.16.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.15.4",
243-
"User-Agent": "cohere-ai/7.15.4",
242+
"X-Fern-SDK-Version": "7.16.0",
243+
"User-Agent": "cohere-ai/7.16.0",
244244
"X-Fern-Runtime": core.RUNTIME.type,
245245
"X-Fern-Runtime-Version": core.RUNTIME.version,
246246
Accepts: accepts != null ? accepts : undefined,
@@ -321,7 +321,7 @@ export class CohereClient {
321321

322322
/**
323323
* <Warning>
324-
* 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.
324+
* 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.
325325
* </Warning>
326326
* Generates realistic text conditioned on a given input.
327327
*/
@@ -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.15.4",
347-
"User-Agent": "cohere-ai/7.15.4",
346+
"X-Fern-SDK-Version": "7.16.0",
347+
"User-Agent": "cohere-ai/7.16.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.15.4",
482-
"User-Agent": "cohere-ai/7.15.4",
481+
"X-Fern-SDK-Version": "7.16.0",
482+
"User-Agent": "cohere-ai/7.16.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.15.4",
605-
"User-Agent": "cohere-ai/7.15.4",
604+
"X-Fern-SDK-Version": "7.16.0",
605+
"User-Agent": "cohere-ai/7.16.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.15.4",
724-
"User-Agent": "cohere-ai/7.15.4",
723+
"X-Fern-SDK-Version": "7.16.0",
724+
"User-Agent": "cohere-ai/7.16.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.15.4",
843-
"User-Agent": "cohere-ai/7.15.4",
842+
"X-Fern-SDK-Version": "7.16.0",
843+
"User-Agent": "cohere-ai/7.16.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.15.4",
964-
"User-Agent": "cohere-ai/7.15.4",
963+
"X-Fern-SDK-Version": "7.16.0",
964+
"User-Agent": "cohere-ai/7.16.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.15.4",
1083-
"User-Agent": "cohere-ai/7.15.4",
1082+
"X-Fern-SDK-Version": "7.16.0",
1083+
"User-Agent": "cohere-ai/7.16.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.15.4",
1202-
"User-Agent": "cohere-ai/7.15.4",
1201+
"X-Fern-SDK-Version": "7.16.0",
1202+
"User-Agent": "cohere-ai/7.16.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.15.4",
1314-
"User-Agent": "cohere-ai/7.15.4",
1313+
"X-Fern-SDK-Version": "7.16.0",
1314+
"User-Agent": "cohere-ai/7.16.0",
13151315
"X-Fern-Runtime": core.RUNTIME.type,
13161316
"X-Fern-Runtime-Version": core.RUNTIME.version,
13171317
...requestOptions?.headers,

‎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.15.4",
89-
"User-Agent": "cohere-ai/7.15.4",
88+
"X-Fern-SDK-Version": "7.16.0",
89+
"User-Agent": "cohere-ai/7.16.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.15.4",
204-
"User-Agent": "cohere-ai/7.15.4",
203+
"X-Fern-SDK-Version": "7.16.0",
204+
"User-Agent": "cohere-ai/7.16.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.15.4",
317-
"User-Agent": "cohere-ai/7.15.4",
316+
"X-Fern-SDK-Version": "7.16.0",
317+
"User-Agent": "cohere-ai/7.16.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.15.4",
428-
"User-Agent": "cohere-ai/7.15.4",
427+
"X-Fern-SDK-Version": "7.16.0",
428+
"User-Agent": "cohere-ai/7.16.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.15.4",
541-
"User-Agent": "cohere-ai/7.15.4",
540+
"X-Fern-SDK-Version": "7.16.0",
541+
"User-Agent": "cohere-ai/7.16.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.15.4",
665-
"User-Agent": "cohere-ai/7.15.4",
664+
"X-Fern-SDK-Version": "7.16.0",
665+
"User-Agent": "cohere-ai/7.16.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.15.4",
107-
"User-Agent": "cohere-ai/7.15.4",
106+
"X-Fern-SDK-Version": "7.16.0",
107+
"User-Agent": "cohere-ai/7.16.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.15.4",
272-
"User-Agent": "cohere-ai/7.15.4",
271+
"X-Fern-SDK-Version": "7.16.0",
272+
"User-Agent": "cohere-ai/7.16.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.15.4",
382-
"User-Agent": "cohere-ai/7.15.4",
381+
"X-Fern-SDK-Version": "7.16.0",
382+
"User-Agent": "cohere-ai/7.16.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.15.4",
490-
"User-Agent": "cohere-ai/7.15.4",
489+
"X-Fern-SDK-Version": "7.16.0",
490+
"User-Agent": "cohere-ai/7.16.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.15.4",
598-
"User-Agent": "cohere-ai/7.15.4",
597+
"X-Fern-SDK-Version": "7.16.0",
598+
"User-Agent": "cohere-ai/7.16.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.15.4",
75-
"User-Agent": "cohere-ai/7.15.4",
74+
"X-Fern-SDK-Version": "7.16.0",
75+
"User-Agent": "cohere-ai/7.16.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.15.4",
190-
"User-Agent": "cohere-ai/7.15.4",
189+
"X-Fern-SDK-Version": "7.16.0",
190+
"User-Agent": "cohere-ai/7.16.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.15.4",
303-
"User-Agent": "cohere-ai/7.15.4",
302+
"X-Fern-SDK-Version": "7.16.0",
303+
"User-Agent": "cohere-ai/7.16.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.15.4",
411-
"User-Agent": "cohere-ai/7.15.4",
410+
"X-Fern-SDK-Version": "7.16.0",
411+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
88-
"User-Agent": "cohere-ai/7.15.4",
87+
"X-Fern-SDK-Version": "7.16.0",
88+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
190-
"User-Agent": "cohere-ai/7.15.4",
189+
"X-Fern-SDK-Version": "7.16.0",
190+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
288-
"User-Agent": "cohere-ai/7.15.4",
287+
"X-Fern-SDK-Version": "7.16.0",
288+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
381-
"User-Agent": "cohere-ai/7.15.4",
380+
"X-Fern-SDK-Version": "7.16.0",
381+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
484-
"User-Agent": "cohere-ai/7.15.4",
483+
"X-Fern-SDK-Version": "7.16.0",
484+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
598-
"User-Agent": "cohere-ai/7.15.4",
597+
"X-Fern-SDK-Version": "7.16.0",
598+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
704-
"User-Agent": "cohere-ai/7.15.4",
703+
"X-Fern-SDK-Version": "7.16.0",
704+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
76-
"User-Agent": "cohere-ai/7.15.4",
75+
"X-Fern-SDK-Version": "7.16.0",
76+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
205-
"User-Agent": "cohere-ai/7.15.4",
204+
"X-Fern-SDK-Version": "7.16.0",
205+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
63-
"User-Agent": "cohere-ai/7.15.4",
62+
"X-Fern-SDK-Version": "7.16.0",
63+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
199-
"User-Agent": "cohere-ai/7.15.4",
198+
"X-Fern-SDK-Version": "7.16.0",
199+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
326-
"User-Agent": "cohere-ai/7.15.4",
325+
"X-Fern-SDK-Version": "7.16.0",
326+
"User-Agent": "cohere-ai/7.16.0",
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.15.4",
446-
"User-Agent": "cohere-ai/7.15.4",
445+
"X-Fern-SDK-Version": "7.16.0",
446+
"User-Agent": "cohere-ai/7.16.0",
447447
"X-Fern-Runtime": core.RUNTIME.type,
448448
"X-Fern-Runtime-Version": core.RUNTIME.version,
449449
...requestOptions?.headers,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export interface V2ChatRequest {
117117
* When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
118118
* If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
119119
*
120-
* **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
120+
* **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
121121
*
122122
* **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`.
123123
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export interface V2ChatStreamRequest {
117117
* When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
118118
* If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
119119
*
120-
* **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
120+
* **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
121121
*
122122
* **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`.
123123
*

‎src/api/resources/v2/types/V2ChatRequestToolChoice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
88
* If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
99
*
10-
* **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
10+
* **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
1111
*
1212
* **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`.
1313
*/

‎src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.
88
* If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.
99
*
10-
* **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer.
10+
* **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
1111
*
1212
* **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`.
1313
*/

‎src/api/types/ChatCitation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
import * as Cohere from "../index";
6+
57
/**
68
* A section of the generated reply which cites external knowledge.
79
*/
@@ -14,4 +16,6 @@ export interface ChatCitation {
1416
text: string;
1517
/** Identifiers of documents cited by this section of the generated reply. */
1618
documentIds: string[];
19+
/** The type of citation which indicates what part of the response the citation is for. */
20+
type?: Cohere.ChatCitationType;
1721
}

‎src/api/types/ChatCitationType.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* The type of citation which indicates what part of the response the citation is for.
7+
*/
8+
export type ChatCitationType = "TEXT_CONTENT" | "PLAN";
9+
export const ChatCitationType = {
10+
TextContent: "TEXT_CONTENT",
11+
Plan: "PLAN",
12+
} as const;

‎src/api/types/Citation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export interface Citation {
1515
/** Text snippet that is being cited. */
1616
text?: string;
1717
sources?: Cohere.Source[];
18+
type?: Cohere.CitationType;
1819
}

‎src/api/types/CitationType.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* The type of citation which indicates what part of the response the citation is for.
7+
*/
8+
export type CitationType = "TEXT_CONTENT" | "PLAN";
9+
export const CitationType = {
10+
TextContent: "TEXT_CONTENT",
11+
Plan: "PLAN",
12+
} as const;

‎src/api/types/Content.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ import * as Cohere from "../index";
77
/**
88
* A Content block which contains information about the content type and the content itself.
99
*/
10-
export type Content = Cohere.Content.Text;
10+
export type Content = Cohere.Content.Text | Cohere.Content.ImageUrl;
1111

1212
export namespace Content {
1313
export interface Text extends Cohere.TextContent {
1414
type: "text";
1515
}
16+
17+
export interface ImageUrl extends Cohere.ImageContent {
18+
type: "image_url";
19+
}
1620
}

‎src/api/types/GetModelResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export interface GetModelResponse {
1818
contextLength?: number;
1919
/** Public URL to the tokenizer's configuration file. */
2020
tokenizerUrl?: string;
21+
/** Whether the model supports image inputs or not. */
22+
supportsVision?: boolean;
2123
/** The API endpoints that the model is default to. */
2224
defaultEndpoints?: Cohere.CompatibleEndpoint[];
2325
}

‎src/api/types/ImageContent.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Cohere from "../index";
6+
7+
/**
8+
* Image content of the message.
9+
*/
10+
export interface ImageContent {
11+
imageUrl: Cohere.ImageUrl;
12+
}

‎src/api/types/ImageUrl.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* Base64 url of image.
7+
*/
8+
export interface ImageUrl {
9+
url: string;
10+
}

‎src/api/types/ToolV2Function.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*/
88
export interface ToolV2Function {
99
/** The name of the function. */
10-
name?: string;
10+
name: string;
1111
/** The description of the function. */
1212
description?: string;
1313
/** The parameters of the function as a JSON schema. */
14-
parameters?: Record<string, unknown>;
14+
parameters: Record<string, unknown>;
1515
}

‎src/api/types/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export * from "./Tool";
4040
export * from "./TextResponseFormat";
4141
export * from "./JsonResponseFormat";
4242
export * from "./ResponseFormat";
43+
export * from "./ChatCitationType";
4344
export * from "./ChatCitation";
4445
export * from "./ChatSearchQuery";
4546
export * from "./ChatSearchResultConnector";
@@ -64,6 +65,8 @@ export * from "./ChatToolCallsChunkEvent";
6465
export * from "./ChatDebugEvent";
6566
export * from "./StreamedChatResponse";
6667
export * from "./TextContent";
68+
export * from "./ImageUrl";
69+
export * from "./ImageContent";
6770
export * from "./Content";
6871
export * from "./UserMessageContent";
6972
export * from "./UserMessage";
@@ -72,6 +75,7 @@ export * from "./ToolCallV2";
7275
export * from "./ToolSource";
7376
export * from "./DocumentSource";
7477
export * from "./Source";
78+
export * from "./CitationType";
7579
export * from "./Citation";
7680
export * from "./AssistantMessageContentItem";
7781
export * from "./AssistantMessageContent";

‎src/serialization/types/ChatCitation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
import * as serializers from "../index";
66
import * as Cohere from "../../api/index";
77
import * as core from "../../core";
8+
import { ChatCitationType } from "./ChatCitationType";
89

910
export const ChatCitation: core.serialization.ObjectSchema<serializers.ChatCitation.Raw, Cohere.ChatCitation> =
1011
core.serialization.object({
1112
start: core.serialization.number(),
1213
end: core.serialization.number(),
1314
text: core.serialization.string(),
1415
documentIds: core.serialization.property("document_ids", core.serialization.list(core.serialization.string())),
16+
type: ChatCitationType.optional(),
1517
});
1618

1719
export declare namespace ChatCitation {
@@ -20,5 +22,6 @@ export declare namespace ChatCitation {
2022
end: number;
2123
text: string;
2224
document_ids: string[];
25+
type?: ChatCitationType.Raw | null;
2326
}
2427
}
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 ChatCitationType: core.serialization.Schema<serializers.ChatCitationType.Raw, Cohere.ChatCitationType> =
10+
core.serialization.enum_(["TEXT_CONTENT", "PLAN"]);
11+
12+
export declare namespace ChatCitationType {
13+
type Raw = "TEXT_CONTENT" | "PLAN";
14+
}

‎src/serialization/types/Citation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import * as serializers from "../index";
66
import * as Cohere from "../../api/index";
77
import * as core from "../../core";
88
import { Source } from "./Source";
9+
import { CitationType } from "./CitationType";
910

1011
export const Citation: core.serialization.ObjectSchema<serializers.Citation.Raw, Cohere.Citation> =
1112
core.serialization.object({
1213
start: core.serialization.number().optional(),
1314
end: core.serialization.number().optional(),
1415
text: core.serialization.string().optional(),
1516
sources: core.serialization.list(Source).optional(),
17+
type: CitationType.optional(),
1618
});
1719

1820
export declare namespace Citation {
@@ -21,5 +23,6 @@ export declare namespace Citation {
2123
end?: number | null;
2224
text?: string | null;
2325
sources?: Source.Raw[] | null;
26+
type?: CitationType.Raw | null;
2427
}
2528
}
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 CitationType: core.serialization.Schema<serializers.CitationType.Raw, Cohere.CitationType> =
10+
core.serialization.enum_(["TEXT_CONTENT", "PLAN"]);
11+
12+
export declare namespace CitationType {
13+
type Raw = "TEXT_CONTENT" | "PLAN";
14+
}

‎src/serialization/types/Content.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,26 @@ import * as serializers from "../index";
66
import * as Cohere from "../../api/index";
77
import * as core from "../../core";
88
import { TextContent } from "./TextContent";
9+
import { ImageContent } from "./ImageContent";
910

1011
export const Content: core.serialization.Schema<serializers.Content.Raw, Cohere.Content> = core.serialization
1112
.union("type", {
1213
text: TextContent,
14+
image_url: ImageContent,
1315
})
1416
.transform<Cohere.Content>({
1517
transform: (value) => value,
1618
untransform: (value) => value,
1719
});
1820

1921
export declare namespace Content {
20-
type Raw = Content.Text;
22+
type Raw = Content.Text | Content.ImageUrl;
2123

2224
interface Text extends TextContent.Raw {
2325
type: "text";
2426
}
27+
28+
interface ImageUrl extends ImageContent.Raw {
29+
type: "image_url";
30+
}
2531
}

‎src/serialization/types/GetModelResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const GetModelResponse: core.serialization.ObjectSchema<
1616
finetuned: core.serialization.boolean().optional(),
1717
contextLength: core.serialization.property("context_length", core.serialization.number().optional()),
1818
tokenizerUrl: core.serialization.property("tokenizer_url", core.serialization.string().optional()),
19+
supportsVision: core.serialization.property("supports_vision", core.serialization.boolean().optional()),
1920
defaultEndpoints: core.serialization.property(
2021
"default_endpoints",
2122
core.serialization.list(CompatibleEndpoint).optional()
@@ -29,6 +30,7 @@ export declare namespace GetModelResponse {
2930
finetuned?: boolean | null;
3031
context_length?: number | null;
3132
tokenizer_url?: string | null;
33+
supports_vision?: boolean | null;
3234
default_endpoints?: CompatibleEndpoint.Raw[] | null;
3335
}
3436
}
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 { ImageUrl } from "./ImageUrl";
9+
10+
export const ImageContent: core.serialization.ObjectSchema<serializers.ImageContent.Raw, Cohere.ImageContent> =
11+
core.serialization.object({
12+
imageUrl: core.serialization.property("image_url", ImageUrl),
13+
});
14+
15+
export declare namespace ImageContent {
16+
interface Raw {
17+
image_url: ImageUrl.Raw;
18+
}
19+
}

‎src/serialization/types/ImageUrl.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 ImageUrl: core.serialization.ObjectSchema<serializers.ImageUrl.Raw, Cohere.ImageUrl> =
10+
core.serialization.object({
11+
url: core.serialization.string(),
12+
});
13+
14+
export declare namespace ImageUrl {
15+
interface Raw {
16+
url: string;
17+
}
18+
}

‎src/serialization/types/ToolV2Function.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import * as core from "../../core";
88

99
export const ToolV2Function: core.serialization.ObjectSchema<serializers.ToolV2Function.Raw, Cohere.ToolV2Function> =
1010
core.serialization.object({
11-
name: core.serialization.string().optional(),
11+
name: core.serialization.string(),
1212
description: core.serialization.string().optional(),
13-
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
13+
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
1414
});
1515

1616
export declare namespace ToolV2Function {
1717
interface Raw {
18-
name?: string | null;
18+
name: string;
1919
description?: string | null;
20-
parameters?: Record<string, unknown> | null;
20+
parameters: Record<string, unknown>;
2121
}
2222
}

‎src/serialization/types/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export * from "./Tool";
4040
export * from "./TextResponseFormat";
4141
export * from "./JsonResponseFormat";
4242
export * from "./ResponseFormat";
43+
export * from "./ChatCitationType";
4344
export * from "./ChatCitation";
4445
export * from "./ChatSearchQuery";
4546
export * from "./ChatSearchResultConnector";
@@ -64,6 +65,8 @@ export * from "./ChatToolCallsChunkEvent";
6465
export * from "./ChatDebugEvent";
6566
export * from "./StreamedChatResponse";
6667
export * from "./TextContent";
68+
export * from "./ImageUrl";
69+
export * from "./ImageContent";
6770
export * from "./Content";
6871
export * from "./UserMessageContent";
6972
export * from "./UserMessage";
@@ -72,6 +75,7 @@ export * from "./ToolCallV2";
7275
export * from "./ToolSource";
7376
export * from "./DocumentSource";
7477
export * from "./Source";
78+
export * from "./CitationType";
7579
export * from "./Citation";
7680
export * from "./AssistantMessageContentItem";
7781
export * from "./AssistantMessageContent";

‎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.15.4";
1+
export const SDK_VERSION = "7.16.0";

‎yarn.lock

Lines changed: 563 additions & 629 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.