Skip to content

Commit 2ec7fa1

Browse files
SDK regeneration (#213)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 9410b7f commit 2ec7fa1

File tree

46 files changed

+1075
-950
lines changed

Some content is hidden

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

46 files changed

+1075
-950
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.0",
3+
"version": "7.15.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
@@ -63,8 +63,8 @@ export class CohereClient {
6363
: undefined,
6464
"X-Fern-Language": "JavaScript",
6565
"X-Fern-SDK-Name": "cohere-ai",
66-
"X-Fern-SDK-Version": "7.15.0",
67-
"User-Agent": "cohere-ai/7.15.0",
66+
"X-Fern-SDK-Version": "7.15.1",
67+
"User-Agent": "cohere-ai/7.15.1",
6868
"X-Fern-Runtime": core.RUNTIME.type,
6969
"X-Fern-Runtime-Version": core.RUNTIME.version,
7070
Accepts: accepts != null ? accepts : undefined,
@@ -241,8 +241,8 @@ export class CohereClient {
241241
: undefined,
242242
"X-Fern-Language": "JavaScript",
243243
"X-Fern-SDK-Name": "cohere-ai",
244-
"X-Fern-SDK-Version": "7.15.0",
245-
"User-Agent": "cohere-ai/7.15.0",
244+
"X-Fern-SDK-Version": "7.15.1",
245+
"User-Agent": "cohere-ai/7.15.1",
246246
"X-Fern-Runtime": core.RUNTIME.type,
247247
"X-Fern-Runtime-Version": core.RUNTIME.version,
248248
Accepts: accepts != null ? accepts : undefined,
@@ -382,8 +382,8 @@ export class CohereClient {
382382
: undefined,
383383
"X-Fern-Language": "JavaScript",
384384
"X-Fern-SDK-Name": "cohere-ai",
385-
"X-Fern-SDK-Version": "7.15.0",
386-
"User-Agent": "cohere-ai/7.15.0",
385+
"X-Fern-SDK-Version": "7.15.1",
386+
"User-Agent": "cohere-ai/7.15.1",
387387
"X-Fern-Runtime": core.RUNTIME.type,
388388
"X-Fern-Runtime-Version": core.RUNTIME.version,
389389
},
@@ -553,8 +553,8 @@ export class CohereClient {
553553
: undefined,
554554
"X-Fern-Language": "JavaScript",
555555
"X-Fern-SDK-Name": "cohere-ai",
556-
"X-Fern-SDK-Version": "7.15.0",
557-
"User-Agent": "cohere-ai/7.15.0",
556+
"X-Fern-SDK-Version": "7.15.1",
557+
"User-Agent": "cohere-ai/7.15.1",
558558
"X-Fern-Runtime": core.RUNTIME.type,
559559
"X-Fern-Runtime-Version": core.RUNTIME.version,
560560
},
@@ -712,8 +712,8 @@ export class CohereClient {
712712
: undefined,
713713
"X-Fern-Language": "JavaScript",
714714
"X-Fern-SDK-Name": "cohere-ai",
715-
"X-Fern-SDK-Version": "7.15.0",
716-
"User-Agent": "cohere-ai/7.15.0",
715+
"X-Fern-SDK-Version": "7.15.1",
716+
"User-Agent": "cohere-ai/7.15.1",
717717
"X-Fern-Runtime": core.RUNTIME.type,
718718
"X-Fern-Runtime-Version": core.RUNTIME.version,
719719
},
@@ -867,8 +867,8 @@ export class CohereClient {
867867
: undefined,
868868
"X-Fern-Language": "JavaScript",
869869
"X-Fern-SDK-Name": "cohere-ai",
870-
"X-Fern-SDK-Version": "7.15.0",
871-
"User-Agent": "cohere-ai/7.15.0",
870+
"X-Fern-SDK-Version": "7.15.1",
871+
"User-Agent": "cohere-ai/7.15.1",
872872
"X-Fern-Runtime": core.RUNTIME.type,
873873
"X-Fern-Runtime-Version": core.RUNTIME.version,
874874
},
@@ -1022,8 +1022,8 @@ export class CohereClient {
10221022
: undefined,
10231023
"X-Fern-Language": "JavaScript",
10241024
"X-Fern-SDK-Name": "cohere-ai",
1025-
"X-Fern-SDK-Version": "7.15.0",
1026-
"User-Agent": "cohere-ai/7.15.0",
1025+
"X-Fern-SDK-Version": "7.15.1",
1026+
"User-Agent": "cohere-ai/7.15.1",
10271027
"X-Fern-Runtime": core.RUNTIME.type,
10281028
"X-Fern-Runtime-Version": core.RUNTIME.version,
10291029
},
@@ -1179,8 +1179,8 @@ export class CohereClient {
11791179
: undefined,
11801180
"X-Fern-Language": "JavaScript",
11811181
"X-Fern-SDK-Name": "cohere-ai",
1182-
"X-Fern-SDK-Version": "7.15.0",
1183-
"User-Agent": "cohere-ai/7.15.0",
1182+
"X-Fern-SDK-Version": "7.15.1",
1183+
"User-Agent": "cohere-ai/7.15.1",
11841184
"X-Fern-Runtime": core.RUNTIME.type,
11851185
"X-Fern-Runtime-Version": core.RUNTIME.version,
11861186
},
@@ -1334,8 +1334,8 @@ export class CohereClient {
13341334
: undefined,
13351335
"X-Fern-Language": "JavaScript",
13361336
"X-Fern-SDK-Name": "cohere-ai",
1337-
"X-Fern-SDK-Version": "7.15.0",
1338-
"User-Agent": "cohere-ai/7.15.0",
1337+
"X-Fern-SDK-Version": "7.15.1",
1338+
"User-Agent": "cohere-ai/7.15.1",
13391339
"X-Fern-Runtime": core.RUNTIME.type,
13401340
"X-Fern-Runtime-Version": core.RUNTIME.version,
13411341
},
@@ -1489,8 +1489,8 @@ export class CohereClient {
14891489
: undefined,
14901490
"X-Fern-Language": "JavaScript",
14911491
"X-Fern-SDK-Name": "cohere-ai",
1492-
"X-Fern-SDK-Version": "7.15.0",
1493-
"User-Agent": "cohere-ai/7.15.0",
1492+
"X-Fern-SDK-Version": "7.15.1",
1493+
"User-Agent": "cohere-ai/7.15.1",
14941494
"X-Fern-Runtime": core.RUNTIME.type,
14951495
"X-Fern-Runtime-Version": core.RUNTIME.version,
14961496
},
@@ -1637,8 +1637,8 @@ export class CohereClient {
16371637
: undefined,
16381638
"X-Fern-Language": "JavaScript",
16391639
"X-Fern-SDK-Name": "cohere-ai",
1640-
"X-Fern-SDK-Version": "7.15.0",
1641-
"User-Agent": "cohere-ai/7.15.0",
1640+
"X-Fern-SDK-Version": "7.15.1",
1641+
"User-Agent": "cohere-ai/7.15.1",
16421642
"X-Fern-Runtime": core.RUNTIME.type,
16431643
"X-Fern-Runtime-Version": core.RUNTIME.version,
16441644
},

src/api/client/requests/ChatRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ export interface ChatRequest {
271271
*
272272
* **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.
273273
*
274+
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
275+
*
274276
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
275277
*
276278
*/

src/api/client/requests/ChatStreamRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ export interface ChatStreamRequest {
343343
*
344344
* **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.
345345
*
346+
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
347+
*
346348
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
347349
*
348350
*/

src/api/client/requests/GenerateRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ export interface GenerateRequest {
9898
*/
9999
presencePenalty?: number;
100100
/**
101-
* One of `GENERATION|ALL|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
101+
* One of `GENERATION|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
102102
*
103103
* If `GENERATION` is selected, the token likelihoods will only be provided for generated text.
104104
*
105-
* If `ALL` is selected, the token likelihoods will be provided both for the prompt and the generated text.
105+
* WARNING: `ALL` is deprecated, and will be removed in a future release.
106106
*/
107107
returnLikelihoods?: Cohere.GenerateRequestReturnLikelihoods;
108108
/** When enabled, the user's prompt will be sent to the model without any pre-processing. */

src/api/client/requests/GenerateStreamRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ export interface GenerateStreamRequest {
113113
*/
114114
presencePenalty?: number;
115115
/**
116-
* One of `GENERATION|ALL|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
116+
* One of `GENERATION|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
117117
*
118118
* If `GENERATION` is selected, the token likelihoods will only be provided for generated text.
119119
*
120-
* If `ALL` is selected, the token likelihoods will be provided both for the prompt and the generated text.
120+
* WARNING: `ALL` is deprecated, and will be removed in a future release.
121121
*/
122122
returnLikelihoods?: Cohere.GenerateStreamRequestReturnLikelihoods;
123123
/** When enabled, the user's prompt will be sent to the model without any pre-processing. */

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export class Connectors {
8282
: undefined,
8383
"X-Fern-Language": "JavaScript",
8484
"X-Fern-SDK-Name": "cohere-ai",
85-
"X-Fern-SDK-Version": "7.15.0",
86-
"User-Agent": "cohere-ai/7.15.0",
85+
"X-Fern-SDK-Version": "7.15.1",
86+
"User-Agent": "cohere-ai/7.15.1",
8787
"X-Fern-Runtime": core.RUNTIME.type,
8888
"X-Fern-Runtime-Version": core.RUNTIME.version,
8989
},
@@ -233,8 +233,8 @@ export class Connectors {
233233
: undefined,
234234
"X-Fern-Language": "JavaScript",
235235
"X-Fern-SDK-Name": "cohere-ai",
236-
"X-Fern-SDK-Version": "7.15.0",
237-
"User-Agent": "cohere-ai/7.15.0",
236+
"X-Fern-SDK-Version": "7.15.1",
237+
"User-Agent": "cohere-ai/7.15.1",
238238
"X-Fern-Runtime": core.RUNTIME.type,
239239
"X-Fern-Runtime-Version": core.RUNTIME.version,
240240
},
@@ -382,8 +382,8 @@ export class Connectors {
382382
: undefined,
383383
"X-Fern-Language": "JavaScript",
384384
"X-Fern-SDK-Name": "cohere-ai",
385-
"X-Fern-SDK-Version": "7.15.0",
386-
"User-Agent": "cohere-ai/7.15.0",
385+
"X-Fern-SDK-Version": "7.15.1",
386+
"User-Agent": "cohere-ai/7.15.1",
387387
"X-Fern-Runtime": core.RUNTIME.type,
388388
"X-Fern-Runtime-Version": core.RUNTIME.version,
389389
},
@@ -529,8 +529,8 @@ export class Connectors {
529529
: undefined,
530530
"X-Fern-Language": "JavaScript",
531531
"X-Fern-SDK-Name": "cohere-ai",
532-
"X-Fern-SDK-Version": "7.15.0",
533-
"User-Agent": "cohere-ai/7.15.0",
532+
"X-Fern-SDK-Version": "7.15.1",
533+
"User-Agent": "cohere-ai/7.15.1",
534534
"X-Fern-Runtime": core.RUNTIME.type,
535535
"X-Fern-Runtime-Version": core.RUNTIME.version,
536536
},
@@ -678,8 +678,8 @@ export class Connectors {
678678
: undefined,
679679
"X-Fern-Language": "JavaScript",
680680
"X-Fern-SDK-Name": "cohere-ai",
681-
"X-Fern-SDK-Version": "7.15.0",
682-
"User-Agent": "cohere-ai/7.15.0",
681+
"X-Fern-SDK-Version": "7.15.1",
682+
"User-Agent": "cohere-ai/7.15.1",
683683
"X-Fern-Runtime": core.RUNTIME.type,
684684
"X-Fern-Runtime-Version": core.RUNTIME.version,
685685
},
@@ -838,8 +838,8 @@ export class Connectors {
838838
: undefined,
839839
"X-Fern-Language": "JavaScript",
840840
"X-Fern-SDK-Name": "cohere-ai",
841-
"X-Fern-SDK-Version": "7.15.0",
842-
"User-Agent": "cohere-ai/7.15.0",
841+
"X-Fern-SDK-Version": "7.15.1",
842+
"User-Agent": "cohere-ai/7.15.1",
843843
"X-Fern-Runtime": core.RUNTIME.type,
844844
"X-Fern-Runtime-Version": core.RUNTIME.version,
845845
},

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export class EmbedJobs {
6868
: undefined,
6969
"X-Fern-Language": "JavaScript",
7070
"X-Fern-SDK-Name": "cohere-ai",
71-
"X-Fern-SDK-Version": "7.15.0",
72-
"User-Agent": "cohere-ai/7.15.0",
71+
"X-Fern-SDK-Version": "7.15.1",
72+
"User-Agent": "cohere-ai/7.15.1",
7373
"X-Fern-Runtime": core.RUNTIME.type,
7474
"X-Fern-Runtime-Version": core.RUNTIME.version,
7575
},
@@ -219,8 +219,8 @@ export class EmbedJobs {
219219
: undefined,
220220
"X-Fern-Language": "JavaScript",
221221
"X-Fern-SDK-Name": "cohere-ai",
222-
"X-Fern-SDK-Version": "7.15.0",
223-
"User-Agent": "cohere-ai/7.15.0",
222+
"X-Fern-SDK-Version": "7.15.1",
223+
"User-Agent": "cohere-ai/7.15.1",
224224
"X-Fern-Runtime": core.RUNTIME.type,
225225
"X-Fern-Runtime-Version": core.RUNTIME.version,
226226
},
@@ -368,8 +368,8 @@ export class EmbedJobs {
368368
: undefined,
369369
"X-Fern-Language": "JavaScript",
370370
"X-Fern-SDK-Name": "cohere-ai",
371-
"X-Fern-SDK-Version": "7.15.0",
372-
"User-Agent": "cohere-ai/7.15.0",
371+
"X-Fern-SDK-Version": "7.15.1",
372+
"User-Agent": "cohere-ai/7.15.1",
373373
"X-Fern-Runtime": core.RUNTIME.type,
374374
"X-Fern-Runtime-Version": core.RUNTIME.version,
375375
},
@@ -512,8 +512,8 @@ export class EmbedJobs {
512512
: undefined,
513513
"X-Fern-Language": "JavaScript",
514514
"X-Fern-SDK-Name": "cohere-ai",
515-
"X-Fern-SDK-Version": "7.15.0",
516-
"User-Agent": "cohere-ai/7.15.0",
515+
"X-Fern-SDK-Version": "7.15.1",
516+
"User-Agent": "cohere-ai/7.15.1",
517517
"X-Fern-Runtime": core.RUNTIME.type,
518518
"X-Fern-Runtime-Version": core.RUNTIME.version,
519519
},

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export class Finetuning {
8282
: undefined,
8383
"X-Fern-Language": "JavaScript",
8484
"X-Fern-SDK-Name": "cohere-ai",
85-
"X-Fern-SDK-Version": "7.15.0",
86-
"User-Agent": "cohere-ai/7.15.0",
85+
"X-Fern-SDK-Version": "7.15.1",
86+
"User-Agent": "cohere-ai/7.15.1",
8787
"X-Fern-Runtime": core.RUNTIME.type,
8888
"X-Fern-Runtime-Version": core.RUNTIME.version,
8989
},
@@ -181,8 +181,8 @@ export class Finetuning {
181181
: undefined,
182182
"X-Fern-Language": "JavaScript",
183183
"X-Fern-SDK-Name": "cohere-ai",
184-
"X-Fern-SDK-Version": "7.15.0",
185-
"User-Agent": "cohere-ai/7.15.0",
184+
"X-Fern-SDK-Version": "7.15.1",
185+
"User-Agent": "cohere-ai/7.15.1",
186186
"X-Fern-Runtime": core.RUNTIME.type,
187187
"X-Fern-Runtime-Version": core.RUNTIME.version,
188188
},
@@ -276,8 +276,8 @@ export class Finetuning {
276276
: undefined,
277277
"X-Fern-Language": "JavaScript",
278278
"X-Fern-SDK-Name": "cohere-ai",
279-
"X-Fern-SDK-Version": "7.15.0",
280-
"User-Agent": "cohere-ai/7.15.0",
279+
"X-Fern-SDK-Version": "7.15.1",
280+
"User-Agent": "cohere-ai/7.15.1",
281281
"X-Fern-Runtime": core.RUNTIME.type,
282282
"X-Fern-Runtime-Version": core.RUNTIME.version,
283283
},
@@ -366,8 +366,8 @@ export class Finetuning {
366366
: undefined,
367367
"X-Fern-Language": "JavaScript",
368368
"X-Fern-SDK-Name": "cohere-ai",
369-
"X-Fern-SDK-Version": "7.15.0",
370-
"User-Agent": "cohere-ai/7.15.0",
369+
"X-Fern-SDK-Version": "7.15.1",
370+
"User-Agent": "cohere-ai/7.15.1",
371371
"X-Fern-Runtime": core.RUNTIME.type,
372372
"X-Fern-Runtime-Version": core.RUNTIME.version,
373373
},
@@ -466,8 +466,8 @@ export class Finetuning {
466466
: undefined,
467467
"X-Fern-Language": "JavaScript",
468468
"X-Fern-SDK-Name": "cohere-ai",
469-
"X-Fern-SDK-Version": "7.15.0",
470-
"User-Agent": "cohere-ai/7.15.0",
469+
"X-Fern-SDK-Version": "7.15.1",
470+
"User-Agent": "cohere-ai/7.15.1",
471471
"X-Fern-Runtime": core.RUNTIME.type,
472472
"X-Fern-Runtime-Version": core.RUNTIME.version,
473473
},
@@ -577,8 +577,8 @@ export class Finetuning {
577577
: undefined,
578578
"X-Fern-Language": "JavaScript",
579579
"X-Fern-SDK-Name": "cohere-ai",
580-
"X-Fern-SDK-Version": "7.15.0",
581-
"User-Agent": "cohere-ai/7.15.0",
580+
"X-Fern-SDK-Version": "7.15.1",
581+
"User-Agent": "cohere-ai/7.15.1",
582582
"X-Fern-Runtime": core.RUNTIME.type,
583583
"X-Fern-Runtime-Version": core.RUNTIME.version,
584584
},
@@ -680,8 +680,8 @@ export class Finetuning {
680680
: undefined,
681681
"X-Fern-Language": "JavaScript",
682682
"X-Fern-SDK-Name": "cohere-ai",
683-
"X-Fern-SDK-Version": "7.15.0",
684-
"User-Agent": "cohere-ai/7.15.0",
683+
"X-Fern-SDK-Version": "7.15.1",
684+
"User-Agent": "cohere-ai/7.15.1",
685685
"X-Fern-Runtime": core.RUNTIME.type,
686686
"X-Fern-Runtime-Version": core.RUNTIME.version,
687687
},

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class Models {
6969
: undefined,
7070
"X-Fern-Language": "JavaScript",
7171
"X-Fern-SDK-Name": "cohere-ai",
72-
"X-Fern-SDK-Version": "7.15.0",
73-
"User-Agent": "cohere-ai/7.15.0",
72+
"X-Fern-SDK-Version": "7.15.1",
73+
"User-Agent": "cohere-ai/7.15.1",
7474
"X-Fern-Runtime": core.RUNTIME.type,
7575
"X-Fern-Runtime-Version": core.RUNTIME.version,
7676
},
@@ -234,8 +234,8 @@ export class Models {
234234
: undefined,
235235
"X-Fern-Language": "JavaScript",
236236
"X-Fern-SDK-Name": "cohere-ai",
237-
"X-Fern-SDK-Version": "7.15.0",
238-
"User-Agent": "cohere-ai/7.15.0",
237+
"X-Fern-SDK-Version": "7.15.1",
238+
"User-Agent": "cohere-ai/7.15.1",
239239
"X-Fern-Runtime": core.RUNTIME.type,
240240
"X-Fern-Runtime-Version": core.RUNTIME.version,
241241
},

0 commit comments

Comments
 (0)