Skip to content

Commit 9410b7f

Browse files
🌿 Fern Regeneration -- December 3, 2024 (#212)
* SDK regeneration * delete cloud-tests --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Billy Trend <billy@cohere.com>
1 parent 22d9664 commit 9410b7f

36 files changed

+577
-814
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.13.1",
3+
"version": "7.15.0",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ await client.v2.chatStream({
111111
},
112112
},
113113
],
114+
strictTools: true,
114115
documents: ["string"],
115116
citationOptions: {
116117
mode: Cohere.CitationOptionsMode.Fast,

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.13.1",
67-
"User-Agent": "cohere-ai/7.13.1",
66+
"X-Fern-SDK-Version": "7.15.0",
67+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
245-
"User-Agent": "cohere-ai/7.13.1",
244+
"X-Fern-SDK-Version": "7.15.0",
245+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
386-
"User-Agent": "cohere-ai/7.13.1",
385+
"X-Fern-SDK-Version": "7.15.0",
386+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
557-
"User-Agent": "cohere-ai/7.13.1",
556+
"X-Fern-SDK-Version": "7.15.0",
557+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
716-
"User-Agent": "cohere-ai/7.13.1",
715+
"X-Fern-SDK-Version": "7.15.0",
716+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
871-
"User-Agent": "cohere-ai/7.13.1",
870+
"X-Fern-SDK-Version": "7.15.0",
871+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
1026-
"User-Agent": "cohere-ai/7.13.1",
1025+
"X-Fern-SDK-Version": "7.15.0",
1026+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
1183-
"User-Agent": "cohere-ai/7.13.1",
1182+
"X-Fern-SDK-Version": "7.15.0",
1183+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
1338-
"User-Agent": "cohere-ai/7.13.1",
1337+
"X-Fern-SDK-Version": "7.15.0",
1338+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
1493-
"User-Agent": "cohere-ai/7.13.1",
1492+
"X-Fern-SDK-Version": "7.15.0",
1493+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
1641-
"User-Agent": "cohere-ai/7.13.1",
1640+
"X-Fern-SDK-Version": "7.15.0",
1641+
"User-Agent": "cohere-ai/7.15.0",
16421642
"X-Fern-Runtime": core.RUNTIME.type,
16431643
"X-Fern-Runtime-Version": core.RUNTIME.version,
16441644
},

src/api/client/requests/RerankRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as Cohere from "../../index";
1212
* }
1313
*/
1414
export interface RerankRequest {
15-
/** The identifier of the model to use, one of : `rerank-english-v3.0`, `rerank-multilingual-v3.0`, `rerank-english-v2.0`, `rerank-multilingual-v2.0` */
15+
/** The identifier of the model to use, eg `rerank-v3.5`. */
1616
model?: string;
1717
/** The search query */
1818
query: string;

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.13.1",
86-
"User-Agent": "cohere-ai/7.13.1",
85+
"X-Fern-SDK-Version": "7.15.0",
86+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
237-
"User-Agent": "cohere-ai/7.13.1",
236+
"X-Fern-SDK-Version": "7.15.0",
237+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
386-
"User-Agent": "cohere-ai/7.13.1",
385+
"X-Fern-SDK-Version": "7.15.0",
386+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
533-
"User-Agent": "cohere-ai/7.13.1",
532+
"X-Fern-SDK-Version": "7.15.0",
533+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
682-
"User-Agent": "cohere-ai/7.13.1",
681+
"X-Fern-SDK-Version": "7.15.0",
682+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
842-
"User-Agent": "cohere-ai/7.13.1",
841+
"X-Fern-SDK-Version": "7.15.0",
842+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
72-
"User-Agent": "cohere-ai/7.13.1",
71+
"X-Fern-SDK-Version": "7.15.0",
72+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
223-
"User-Agent": "cohere-ai/7.13.1",
222+
"X-Fern-SDK-Version": "7.15.0",
223+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
372-
"User-Agent": "cohere-ai/7.13.1",
371+
"X-Fern-SDK-Version": "7.15.0",
372+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
516-
"User-Agent": "cohere-ai/7.13.1",
515+
"X-Fern-SDK-Version": "7.15.0",
516+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
86-
"User-Agent": "cohere-ai/7.13.1",
85+
"X-Fern-SDK-Version": "7.15.0",
86+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
185-
"User-Agent": "cohere-ai/7.13.1",
184+
"X-Fern-SDK-Version": "7.15.0",
185+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
280-
"User-Agent": "cohere-ai/7.13.1",
279+
"X-Fern-SDK-Version": "7.15.0",
280+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
370-
"User-Agent": "cohere-ai/7.13.1",
369+
"X-Fern-SDK-Version": "7.15.0",
370+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
470-
"User-Agent": "cohere-ai/7.13.1",
469+
"X-Fern-SDK-Version": "7.15.0",
470+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
581-
"User-Agent": "cohere-ai/7.13.1",
580+
"X-Fern-SDK-Version": "7.15.0",
581+
"User-Agent": "cohere-ai/7.15.0",
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.13.1",
684-
"User-Agent": "cohere-ai/7.13.1",
683+
"X-Fern-SDK-Version": "7.15.0",
684+
"User-Agent": "cohere-ai/7.15.0",
685685
"X-Fern-Runtime": core.RUNTIME.type,
686686
"X-Fern-Runtime-Version": core.RUNTIME.version,
687687
},

src/api/resources/finetuning/client/requests/FinetuningUpdateFinetunedModelRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ export interface FinetuningUpdateFinetunedModelRequest {
3333
updatedAt?: Date;
3434
/** Timestamp for the completed fine-tuning. */
3535
completedAt?: Date;
36-
/** Timestamp for the latest request to this fine-tuned model. */
36+
/** Deprecated: Timestamp for the latest request to this fine-tuned model. */
3737
lastUsed?: Date;
3838
}

src/api/resources/finetuning/resources/finetuning/types/FinetunedModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export interface FinetunedModel {
2626
updatedAt?: Date;
2727
/** read-only. Timestamp for the completed fine-tuning. */
2828
completedAt?: Date;
29-
/** read-only. Timestamp for the latest request to this fine-tuned model. */
29+
/** read-only. Deprecated: Timestamp for the latest request to this fine-tuned model. */
3030
lastUsed?: Date;
3131
}

src/api/resources/finetuning/resources/finetuning/types/Strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* - STRATEGY_UNSPECIFIED: Unspecified strategy.
99
* - STRATEGY_VANILLA: Deprecated: Serve the fine-tuned model on a dedicated GPU.
10-
* - STRATEGY_TFEW: Serve the fine-tuned model on a shared GPU.
10+
* - STRATEGY_TFEW: Deprecated: Serve the fine-tuned model on a shared GPU.
1111
*/
1212
export type Strategy = "STRATEGY_UNSPECIFIED" | "STRATEGY_VANILLA" | "STRATEGY_TFEW";
1313

0 commit comments

Comments
 (0)