Skip to content

Commit 16c6117

Browse files
committed
SDK regeneration
1 parent ad583e3 commit 16c6117

34 files changed

+1090
-797
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.18.0",
3+
"version": "7.18.1",
44
"private": false,
55
"repository": "https://github.com/cohere-ai/cohere-typescript",
66
"main": "./index.js",

reference.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,21 @@ await client.models.list();
14651465
<dl>
14661466
<dd>
14671467

1468+
#### 📝 Description
1469+
1470+
<dl>
1471+
<dd>
1472+
1473+
<dl>
1474+
<dd>
1475+
1476+
Returns a list of fine-tuned models that the user has access to.
1477+
1478+
</dd>
1479+
</dl>
1480+
</dd>
1481+
</dl>
1482+
14681483
#### 🔌 Usage
14691484

14701485
<dl>
@@ -1513,6 +1528,21 @@ await client.finetuning.listFinetunedModels();
15131528
<dl>
15141529
<dd>
15151530

1531+
#### 📝 Description
1532+
1533+
<dl>
1534+
<dd>
1535+
1536+
<dl>
1537+
<dd>
1538+
1539+
Creates a new fine-tuned model. The model will be trained on the dataset specified in the request body. The training process may take some time, and the model will be available once the training is complete.
1540+
1541+
</dd>
1542+
</dl>
1543+
</dd>
1544+
</dl>
1545+
15161546
#### 🔌 Usage
15171547

15181548
<dl>
@@ -1569,6 +1599,21 @@ await client.finetuning.createFinetunedModel({
15691599
<dl>
15701600
<dd>
15711601

1602+
#### 📝 Description
1603+
1604+
<dl>
1605+
<dd>
1606+
1607+
<dl>
1608+
<dd>
1609+
1610+
Retrieve a fine-tuned model by its ID.
1611+
1612+
</dd>
1613+
</dl>
1614+
</dd>
1615+
</dl>
1616+
15721617
#### 🔌 Usage
15731618

15741619
<dl>
@@ -1617,6 +1662,22 @@ await client.finetuning.getFinetunedModel("id");
16171662
<dl>
16181663
<dd>
16191664

1665+
#### 📝 Description
1666+
1667+
<dl>
1668+
<dd>
1669+
1670+
<dl>
1671+
<dd>
1672+
1673+
Deletes a fine-tuned model. The model will be removed from the system and will no longer be available for use.
1674+
This operation is irreversible.
1675+
1676+
</dd>
1677+
</dl>
1678+
</dd>
1679+
</dl>
1680+
16201681
#### 🔌 Usage
16211682

16221683
<dl>
@@ -1665,6 +1726,21 @@ await client.finetuning.deleteFinetunedModel("id");
16651726
<dl>
16661727
<dd>
16671728

1729+
#### 📝 Description
1730+
1731+
<dl>
1732+
<dd>
1733+
1734+
<dl>
1735+
<dd>
1736+
1737+
Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.
1738+
1739+
</dd>
1740+
</dl>
1741+
</dd>
1742+
</dl>
1743+
16681744
#### 🔌 Usage
16691745

16701746
<dl>
@@ -1729,6 +1805,23 @@ await client.finetuning.updateFinetunedModel("id", {
17291805
<dl>
17301806
<dd>
17311807

1808+
#### 📝 Description
1809+
1810+
<dl>
1811+
<dd>
1812+
1813+
<dl>
1814+
<dd>
1815+
1816+
Returns a list of events that occurred during the life-cycle of the fine-tuned model.
1817+
The events are ordered by creation time, with the most recent event first.
1818+
The list can be paginated using `page_size` and `page_token` parameters.
1819+
1820+
</dd>
1821+
</dl>
1822+
</dd>
1823+
</dl>
1824+
17321825
#### 🔌 Usage
17331826

17341827
<dl>
@@ -1785,6 +1878,23 @@ await client.finetuning.listEvents("finetuned_model_id");
17851878
<dl>
17861879
<dd>
17871880

1881+
#### 📝 Description
1882+
1883+
<dl>
1884+
<dd>
1885+
1886+
<dl>
1887+
<dd>
1888+
1889+
Returns a list of metrics measured during the training of a fine-tuned model.
1890+
The metrics are ordered by step number, with the most recent step first.
1891+
The list can be paginated using `page_size` and `page_token` parameters.
1892+
1893+
</dd>
1894+
</dl>
1895+
</dd>
1896+
</dl>
1897+
17881898
#### 🔌 Usage
17891899

17901900
<dl>

src/Client.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export class CohereClient {
108108
: undefined,
109109
"X-Fern-Language": "JavaScript",
110110
"X-Fern-SDK-Name": "cohere-ai",
111-
"X-Fern-SDK-Version": "7.18.0",
112-
"User-Agent": "cohere-ai/7.18.0",
111+
"X-Fern-SDK-Version": "7.18.1",
112+
"User-Agent": "cohere-ai/7.18.1",
113113
"X-Fern-Runtime": core.RUNTIME.type,
114114
"X-Fern-Runtime-Version": core.RUNTIME.version,
115115
Accepts: accepts != null ? accepts : undefined,
@@ -312,8 +312,8 @@ export class CohereClient {
312312
: undefined,
313313
"X-Fern-Language": "JavaScript",
314314
"X-Fern-SDK-Name": "cohere-ai",
315-
"X-Fern-SDK-Version": "7.18.0",
316-
"User-Agent": "cohere-ai/7.18.0",
315+
"X-Fern-SDK-Version": "7.18.1",
316+
"User-Agent": "cohere-ai/7.18.1",
317317
"X-Fern-Runtime": core.RUNTIME.type,
318318
"X-Fern-Runtime-Version": core.RUNTIME.version,
319319
Accepts: accepts != null ? accepts : undefined,
@@ -431,8 +431,8 @@ export class CohereClient {
431431
: undefined,
432432
"X-Fern-Language": "JavaScript",
433433
"X-Fern-SDK-Name": "cohere-ai",
434-
"X-Fern-SDK-Version": "7.18.0",
435-
"User-Agent": "cohere-ai/7.18.0",
434+
"X-Fern-SDK-Version": "7.18.1",
435+
"User-Agent": "cohere-ai/7.18.1",
436436
"X-Fern-Runtime": core.RUNTIME.type,
437437
"X-Fern-Runtime-Version": core.RUNTIME.version,
438438
...requestOptions?.headers,
@@ -581,8 +581,8 @@ export class CohereClient {
581581
: undefined,
582582
"X-Fern-Language": "JavaScript",
583583
"X-Fern-SDK-Name": "cohere-ai",
584-
"X-Fern-SDK-Version": "7.18.0",
585-
"User-Agent": "cohere-ai/7.18.0",
584+
"X-Fern-SDK-Version": "7.18.1",
585+
"User-Agent": "cohere-ai/7.18.1",
586586
"X-Fern-Runtime": core.RUNTIME.type,
587587
"X-Fern-Runtime-Version": core.RUNTIME.version,
588588
...requestOptions?.headers,
@@ -731,8 +731,8 @@ export class CohereClient {
731731
: undefined,
732732
"X-Fern-Language": "JavaScript",
733733
"X-Fern-SDK-Name": "cohere-ai",
734-
"X-Fern-SDK-Version": "7.18.0",
735-
"User-Agent": "cohere-ai/7.18.0",
734+
"X-Fern-SDK-Version": "7.18.1",
735+
"User-Agent": "cohere-ai/7.18.1",
736736
"X-Fern-Runtime": core.RUNTIME.type,
737737
"X-Fern-Runtime-Version": core.RUNTIME.version,
738738
...requestOptions?.headers,
@@ -877,8 +877,8 @@ export class CohereClient {
877877
: undefined,
878878
"X-Fern-Language": "JavaScript",
879879
"X-Fern-SDK-Name": "cohere-ai",
880-
"X-Fern-SDK-Version": "7.18.0",
881-
"User-Agent": "cohere-ai/7.18.0",
880+
"X-Fern-SDK-Version": "7.18.1",
881+
"User-Agent": "cohere-ai/7.18.1",
882882
"X-Fern-Runtime": core.RUNTIME.type,
883883
"X-Fern-Runtime-Version": core.RUNTIME.version,
884884
...requestOptions?.headers,
@@ -1043,8 +1043,8 @@ export class CohereClient {
10431043
: undefined,
10441044
"X-Fern-Language": "JavaScript",
10451045
"X-Fern-SDK-Name": "cohere-ai",
1046-
"X-Fern-SDK-Version": "7.18.0",
1047-
"User-Agent": "cohere-ai/7.18.0",
1046+
"X-Fern-SDK-Version": "7.18.1",
1047+
"User-Agent": "cohere-ai/7.18.1",
10481048
"X-Fern-Runtime": core.RUNTIME.type,
10491049
"X-Fern-Runtime-Version": core.RUNTIME.version,
10501050
...requestOptions?.headers,
@@ -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.18.0",
1183-
"User-Agent": "cohere-ai/7.18.0",
1182+
"X-Fern-SDK-Version": "7.18.1",
1183+
"User-Agent": "cohere-ai/7.18.1",
11841184
"X-Fern-Runtime": core.RUNTIME.type,
11851185
"X-Fern-Runtime-Version": core.RUNTIME.version,
11861186
...requestOptions?.headers,
@@ -1313,8 +1313,8 @@ export class CohereClient {
13131313
: undefined,
13141314
"X-Fern-Language": "JavaScript",
13151315
"X-Fern-SDK-Name": "cohere-ai",
1316-
"X-Fern-SDK-Version": "7.18.0",
1317-
"User-Agent": "cohere-ai/7.18.0",
1316+
"X-Fern-SDK-Version": "7.18.1",
1317+
"User-Agent": "cohere-ai/7.18.1",
13181318
"X-Fern-Runtime": core.RUNTIME.type,
13191319
"X-Fern-Runtime-Version": core.RUNTIME.version,
13201320
...requestOptions?.headers,
@@ -1447,8 +1447,8 @@ export class CohereClient {
14471447
: undefined,
14481448
"X-Fern-Language": "JavaScript",
14491449
"X-Fern-SDK-Name": "cohere-ai",
1450-
"X-Fern-SDK-Version": "7.18.0",
1451-
"User-Agent": "cohere-ai/7.18.0",
1450+
"X-Fern-SDK-Version": "7.18.1",
1451+
"User-Agent": "cohere-ai/7.18.1",
14521452
"X-Fern-Runtime": core.RUNTIME.type,
14531453
"X-Fern-Runtime-Version": core.RUNTIME.version,
14541454
...requestOptions?.headers,
@@ -1575,8 +1575,8 @@ export class CohereClient {
15751575
: undefined,
15761576
"X-Fern-Language": "JavaScript",
15771577
"X-Fern-SDK-Name": "cohere-ai",
1578-
"X-Fern-SDK-Version": "7.18.0",
1579-
"User-Agent": "cohere-ai/7.18.0",
1578+
"X-Fern-SDK-Version": "7.18.1",
1579+
"User-Agent": "cohere-ai/7.18.1",
15801580
"X-Fern-Runtime": core.RUNTIME.type,
15811581
"X-Fern-Runtime-Version": core.RUNTIME.version,
15821582
...requestOptions?.headers,

src/api/client/requests/ClassifyRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface ClassifyRequest {
5656
examples?: Cohere.ClassifyExample[];
5757
/** ID of a [Fine-tuned](https://docs.cohere.com/v2/docs/classify-starting-the-training) Classify model */
5858
model?: string;
59-
/** 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. */
59+
/** The ID of a custom playground preset. You can create presets in the [playground](https://dashboard.cohere.com/playground). If you use a preset, all other parameters become optional, and any included parameters will override the preset's parameters. */
6060
preset?: string;
6161
/**
6262
* One of `NONE|START|END` to specify how the API will handle inputs longer than the maximum token length.

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export class Connectors {
9696
: undefined,
9797
"X-Fern-Language": "JavaScript",
9898
"X-Fern-SDK-Name": "cohere-ai",
99-
"X-Fern-SDK-Version": "7.18.0",
100-
"User-Agent": "cohere-ai/7.18.0",
99+
"X-Fern-SDK-Version": "7.18.1",
100+
"User-Agent": "cohere-ai/7.18.1",
101101
"X-Fern-Runtime": core.RUNTIME.type,
102102
"X-Fern-Runtime-Version": core.RUNTIME.version,
103103
...requestOptions?.headers,
@@ -226,8 +226,8 @@ export class Connectors {
226226
: undefined,
227227
"X-Fern-Language": "JavaScript",
228228
"X-Fern-SDK-Name": "cohere-ai",
229-
"X-Fern-SDK-Version": "7.18.0",
230-
"User-Agent": "cohere-ai/7.18.0",
229+
"X-Fern-SDK-Version": "7.18.1",
230+
"User-Agent": "cohere-ai/7.18.1",
231231
"X-Fern-Runtime": core.RUNTIME.type,
232232
"X-Fern-Runtime-Version": core.RUNTIME.version,
233233
...requestOptions?.headers,
@@ -357,8 +357,8 @@ export class Connectors {
357357
: undefined,
358358
"X-Fern-Language": "JavaScript",
359359
"X-Fern-SDK-Name": "cohere-ai",
360-
"X-Fern-SDK-Version": "7.18.0",
361-
"User-Agent": "cohere-ai/7.18.0",
360+
"X-Fern-SDK-Version": "7.18.1",
361+
"User-Agent": "cohere-ai/7.18.1",
362362
"X-Fern-Runtime": core.RUNTIME.type,
363363
"X-Fern-Runtime-Version": core.RUNTIME.version,
364364
...requestOptions?.headers,
@@ -483,8 +483,8 @@ export class Connectors {
483483
: undefined,
484484
"X-Fern-Language": "JavaScript",
485485
"X-Fern-SDK-Name": "cohere-ai",
486-
"X-Fern-SDK-Version": "7.18.0",
487-
"User-Agent": "cohere-ai/7.18.0",
486+
"X-Fern-SDK-Version": "7.18.1",
487+
"User-Agent": "cohere-ai/7.18.1",
488488
"X-Fern-Runtime": core.RUNTIME.type,
489489
"X-Fern-Runtime-Version": core.RUNTIME.version,
490490
...requestOptions?.headers,
@@ -612,8 +612,8 @@ export class Connectors {
612612
: undefined,
613613
"X-Fern-Language": "JavaScript",
614614
"X-Fern-SDK-Name": "cohere-ai",
615-
"X-Fern-SDK-Version": "7.18.0",
616-
"User-Agent": "cohere-ai/7.18.0",
615+
"X-Fern-SDK-Version": "7.18.1",
616+
"User-Agent": "cohere-ai/7.18.1",
617617
"X-Fern-Runtime": core.RUNTIME.type,
618618
"X-Fern-Runtime-Version": core.RUNTIME.version,
619619
...requestOptions?.headers,
@@ -752,8 +752,8 @@ export class Connectors {
752752
: undefined,
753753
"X-Fern-Language": "JavaScript",
754754
"X-Fern-SDK-Name": "cohere-ai",
755-
"X-Fern-SDK-Version": "7.18.0",
756-
"User-Agent": "cohere-ai/7.18.0",
755+
"X-Fern-SDK-Version": "7.18.1",
756+
"User-Agent": "cohere-ai/7.18.1",
757757
"X-Fern-Runtime": core.RUNTIME.type,
758758
"X-Fern-Runtime-Version": core.RUNTIME.version,
759759
...requestOptions?.headers,

0 commit comments

Comments
 (0)