Skip to content

Commit

Permalink
SDK regeneration (#204)
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 Sep 25, 2024
1 parent 499bde5 commit 1c8de5f
Show file tree
Hide file tree
Showing 43 changed files with 440 additions and 505 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.13.2",
"version": "7.14.0",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
Expand Down
7 changes: 2 additions & 5 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ await client.v2.chat({
{
role: "tool",
toolCallId: "messages",
toolContent: "messages",
},
],
});
Expand Down Expand Up @@ -266,9 +265,7 @@ If you want to learn more how to use the embedding model, have a look at the [Se

```typescript
await client.v2.embed({
inputType: "image",
images: ["string"],
model: "string",
model: "model",
});
```

Expand All @@ -285,7 +282,7 @@ await client.v2.embed({
<dl>
<dd>

**request:** `Cohere.EmbedRequestV2`
**request:** `Cohere.V2EmbedRequest`

</dd>
</dl>
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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"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.13.2",
"User-Agent": "cohere-ai/7.13.2",
"X-Fern-SDK-Version": "7.14.0",
"User-Agent": "cohere-ai/7.14.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export interface BaseModel {
version?: string;
/** The type of the base model. */
baseType: Cohere.finetuning.BaseType;
/** The fine-tuning strategy. */
/** Deprecated: The fine-tuning strategy. */
strategy?: Cohere.finetuning.Strategy;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Cohere from "../../../../../index";

/**
* The fine-tuning hyperparameters.
*/
Expand All @@ -22,4 +24,16 @@ export interface Hyperparameters {
trainEpochs?: number;
/** The learning rate to be used during training. */
learningRate?: number;
/**
* Controls the scaling factor for LoRA updates. Higher values make the
* updates more impactful.
*/
loraAlpha?: number;
/**
* Specifies the rank for low-rank matrices. Lower ranks reduce parameters
* but may limit model flexibility.
*/
loraRank?: number;
/** The combination of LoRA modules to target. */
loraTargetModules?: Cohere.finetuning.LoraTargetModules;
}
Loading

0 comments on commit 1c8de5f

Please sign in to comment.