Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cohere-ai",
"version": "7.18.1",
"version": "8.0.0",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
Expand Down
6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1553,12 +1553,12 @@ Creates a new fine-tuned model. The model will be trained on the dataset specifi

```typescript
await client.finetuning.createFinetunedModel({
name: "api-test",
name: "name",
settings: {
baseModel: {
baseType: "BASE_TYPE_CHAT",
baseType: "BASE_TYPE_UNSPECIFIED",
},
datasetId: "my-dataset-id",
datasetId: "dataset_id",
},
});
```
Expand Down
44 changes: 22 additions & 22 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Accepts: accepts != null ? accepts : undefined,
Expand Down Expand Up @@ -312,8 +312,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Accepts: accepts != null ? accepts : undefined,
Expand Down Expand Up @@ -431,8 +431,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -581,8 +581,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -731,8 +731,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -877,8 +877,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -1043,8 +1043,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -1179,8 +1179,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -1313,8 +1313,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -1447,8 +1447,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -1575,8 +1575,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
24 changes: 12 additions & 12 deletions src/api/resources/connectors/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -226,8 +226,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -357,8 +357,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -483,8 +483,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -612,8 +612,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -752,8 +752,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/datasets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class Datasets {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -300,8 +300,8 @@ export class Datasets {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
Expand Down Expand Up @@ -426,8 +426,8 @@ export class Datasets {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -552,8 +552,8 @@ export class Datasets {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -678,8 +678,8 @@ export class Datasets {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
16 changes: 8 additions & 8 deletions src/api/resources/embedJobs/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -211,8 +211,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -339,8 +339,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -459,8 +459,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.18.1",
"User-Agent": "cohere-ai/7.18.1",
"X-Fern-SDK-Version": "8.0.0",
"User-Agent": "cohere-ai/8.0.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Loading