Skip to content

Commit

Permalink
SDK regeneration (#213)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Jan 3, 2025
1 parent 9410b7f commit 2ec7fa1
Show file tree
Hide file tree
Showing 46 changed files with 1,075 additions and 950 deletions.
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.15.0",
"version": "7.15.1",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
Expand Down
44 changes: 22 additions & 22 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Accepts: accepts != null ? accepts : undefined,
Expand Down Expand Up @@ -241,8 +241,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Accepts: accepts != null ? accepts : undefined,
Expand Down Expand Up @@ -382,8 +382,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -553,8 +553,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -712,8 +712,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -867,8 +867,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1022,8 +1022,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1334,8 +1334,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1489,8 +1489,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1637,8 +1637,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/client/requests/ChatRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export interface ChatRequest {
*
* **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.
*
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
*
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
Expand Down
2 changes: 2 additions & 0 deletions src/api/client/requests/ChatStreamRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ export interface ChatStreamRequest {
*
* **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.
*
* **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes.
*
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
Expand Down
4 changes: 2 additions & 2 deletions src/api/client/requests/GenerateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ export interface GenerateRequest {
*/
presencePenalty?: number;
/**
* One of `GENERATION|ALL|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
* One of `GENERATION|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
*
* If `GENERATION` is selected, the token likelihoods will only be provided for generated text.
*
* If `ALL` is selected, the token likelihoods will be provided both for the prompt and the generated text.
* WARNING: `ALL` is deprecated, and will be removed in a future release.
*/
returnLikelihoods?: Cohere.GenerateRequestReturnLikelihoods;
/** When enabled, the user's prompt will be sent to the model without any pre-processing. */
Expand Down
4 changes: 2 additions & 2 deletions src/api/client/requests/GenerateStreamRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ export interface GenerateStreamRequest {
*/
presencePenalty?: number;
/**
* One of `GENERATION|ALL|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
* One of `GENERATION|NONE` to specify how and if the token likelihoods are returned with the response. Defaults to `NONE`.
*
* If `GENERATION` is selected, the token likelihoods will only be provided for generated text.
*
* If `ALL` is selected, the token likelihoods will be provided both for the prompt and the generated text.
* WARNING: `ALL` is deprecated, and will be removed in a future release.
*/
returnLikelihoods?: Cohere.GenerateStreamRequestReturnLikelihoods;
/** When enabled, the user's prompt will be sent to the model without any pre-processing. */
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 @@ -82,8 +82,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -233,8 +233,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -382,8 +382,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -529,8 +529,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -678,8 +678,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -838,8 +838,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -68,8 +68,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -219,8 +219,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -368,8 +368,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -512,8 +512,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
28 changes: 14 additions & 14 deletions src/api/resources/finetuning/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -181,8 +181,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -276,8 +276,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -366,8 +366,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -466,8 +466,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -577,8 +577,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -680,8 +680,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/models/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -234,8 +234,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.15.0",
"User-Agent": "cohere-ai/7.15.0",
"X-Fern-SDK-Version": "7.15.1",
"User-Agent": "cohere-ai/7.15.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Loading

0 comments on commit 2ec7fa1

Please sign in to comment.