Skip to content

Commit 1c8de5f

Browse files
SDK regeneration (#204)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 499bde5 commit 1c8de5f

Some content is hidden

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

43 files changed

+440
-505
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.2",
3+
"version": "7.14.0",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

reference.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ await client.v2.chat({
195195
{
196196
role: "tool",
197197
toolCallId: "messages",
198-
toolContent: "messages",
199198
},
200199
],
201200
});
@@ -266,9 +265,7 @@ If you want to learn more how to use the embedding model, have a look at the [Se
266265

267266
```typescript
268267
await client.v2.embed({
269-
inputType: "image",
270-
images: ["string"],
271-
model: "string",
268+
model: "model",
272269
});
273270
```
274271

@@ -285,7 +282,7 @@ await client.v2.embed({
285282
<dl>
286283
<dd>
287284

288-
**request:** `Cohere.EmbedRequestV2`
285+
**request:** `Cohere.V2EmbedRequest`
289286

290287
</dd>
291288
</dl>

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export interface BaseModel {
1414
version?: string;
1515
/** The type of the base model. */
1616
baseType: Cohere.finetuning.BaseType;
17-
/** The fine-tuning strategy. */
17+
/** Deprecated: The fine-tuning strategy. */
1818
strategy?: Cohere.finetuning.Strategy;
1919
}

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

Lines changed: 14 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
* The fine-tuning hyperparameters.
79
*/
@@ -22,4 +24,16 @@ export interface Hyperparameters {
2224
trainEpochs?: number;
2325
/** The learning rate to be used during training. */
2426
learningRate?: number;
27+
/**
28+
* Controls the scaling factor for LoRA updates. Higher values make the
29+
* updates more impactful.
30+
*/
31+
loraAlpha?: number;
32+
/**
33+
* Specifies the rank for low-rank matrices. Lower ranks reduce parameters
34+
* but may limit model flexibility.
35+
*/
36+
loraRank?: number;
37+
/** The combination of LoRA modules to target. */
38+
loraTargetModules?: Cohere.finetuning.LoraTargetModules;
2539
}

0 commit comments

Comments
 (0)