Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cohere-ai

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cohere-ai - npm Package Compare versions

Comparing version 7.11.2 to 7.12.0

api/resources/finetuning/resources/finetuning/types/WandbConfig.d.ts

24

api/resources/connectors/client/Client.js

@@ -85,3 +85,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "connectors"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/connectors"),
method: "GET",

@@ -95,3 +95,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -220,3 +220,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "connectors"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/connectors"),
method: "POST",

@@ -230,3 +230,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -356,3 +356,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "GET",

@@ -366,3 +366,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -487,3 +487,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -497,3 +497,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -619,3 +619,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "PATCH",

@@ -629,3 +629,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -761,3 +761,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}/oauth/authorize`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}/oauth/authorize`),
method: "POST",

@@ -771,3 +771,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -774,0 +774,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -97,3 +97,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets"),
method: "GET",

@@ -107,3 +107,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -274,7 +274,7 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets"),
method: "POST",
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Client-Name": (yield core.Supplier.get(this._options.clientName)) != null
? yield core.Supplier.get(this._options.clientName)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", "X-Fern-SDK-Version": "7.11.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", "X-Fern-SDK-Version": "7.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -397,3 +397,3 @@ requestType: "file",

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets/usage"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets/usage"),
method: "GET",

@@ -407,3 +407,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -528,3 +528,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/datasets/${encodeURIComponent(id)}`),
method: "GET",

@@ -538,3 +538,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -659,3 +659,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/datasets/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -669,3 +669,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -672,0 +672,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "embed-jobs"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/embed-jobs"),
method: "GET",

@@ -86,3 +86,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -211,3 +211,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "embed-jobs"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/embed-jobs"),
method: "POST",

@@ -221,3 +221,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -347,3 +347,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `embed-jobs/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/embed-jobs/${encodeURIComponent(id)}`),
method: "GET",

@@ -357,3 +357,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -478,3 +478,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `embed-jobs/${encodeURIComponent(id)}/cancel`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/embed-jobs/${encodeURIComponent(id)}/cancel`),
method: "POST",

@@ -488,3 +488,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -491,0 +491,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -84,3 +84,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "finetuning/finetuned-models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/finetuning/finetuned-models"),
method: "GET",

@@ -94,3 +94,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -177,3 +177,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "finetuning/finetuned-models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/finetuning/finetuned-models"),
method: "POST",

@@ -187,3 +187,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -266,3 +266,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "GET",

@@ -276,3 +276,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -350,3 +350,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -360,3 +360,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -443,3 +443,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "PATCH",

@@ -453,3 +453,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -544,3 +544,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/events`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/events`),
method: "GET",

@@ -554,3 +554,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -638,3 +638,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/training-step-metrics`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/training-step-metrics`),
method: "GET",

@@ -648,3 +648,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -651,0 +651,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -5,2 +5,3 @@ export * from "./BaseType";

export * from "./Hyperparameters";
export * from "./WandbConfig";
export * from "./Settings";

@@ -7,0 +8,0 @@ export * from "./Status";

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./Hyperparameters"), exports);
__exportStar(require("./WandbConfig"), exports);
__exportStar(require("./Settings"), exports);

@@ -23,0 +24,0 @@ __exportStar(require("./Status"), exports);

@@ -17,2 +17,4 @@ /**

multiLabel?: boolean;
/** The Weights & Biases configuration. */
wandb?: Cohere.finetuning.WandbConfig;
}

@@ -0,1 +1,3 @@

export * as v2 from "./v2";
export * from "./v2/types";
export * as embedJobs from "./embedJobs";

@@ -8,2 +10,3 @@ export * from "./embedJobs/types";

export * as models from "./models";
export * from "./v2/client/requests";
export * from "./embedJobs/client/requests";

@@ -10,0 +13,0 @@ export * from "./datasets/client/requests";

@@ -29,3 +29,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.models = exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = void 0;
exports.models = exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = exports.v2 = void 0;
exports.v2 = __importStar(require("./v2"));
__exportStar(require("./v2/types"), exports);
exports.embedJobs = __importStar(require("./embedJobs"));

@@ -38,2 +40,3 @@ __exportStar(require("./embedJobs/types"), exports);

exports.models = __importStar(require("./models"));
__exportStar(require("./v2/client/requests"), exports);
__exportStar(require("./embedJobs/client/requests"), exports);

@@ -40,0 +43,0 @@ __exportStar(require("./datasets/client/requests"), exports);

@@ -77,3 +77,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `models/${encodeURIComponent(model)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/models/${encodeURIComponent(model)}`),
method: "GET",

@@ -87,3 +87,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -222,3 +222,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/models"),
method: "GET",

@@ -232,3 +232,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -235,0 +235,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -7,2 +7,3 @@ /**

import * as Cohere from "./api/index";
import { V2 } from "./api/resources/v2/client/Client";
import { EmbedJobs } from "./api/resources/embedJobs/client/Client";

@@ -316,2 +317,4 @@ import { Datasets } from "./api/resources/datasets/client/Client";

checkApiKey(requestOptions?: CohereClient.RequestOptions): Promise<Cohere.CheckApiKeyResponse>;
protected _v2: V2 | undefined;
get v2(): V2;
protected _embedJobs: EmbedJobs | undefined;

@@ -318,0 +321,0 @@ get embedJobs(): EmbedJobs;

@@ -85,3 +85,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "connectors"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/connectors"),
method: "GET",

@@ -95,3 +95,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -220,3 +220,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "connectors"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/connectors"),
method: "POST",

@@ -230,3 +230,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -356,3 +356,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "GET",

@@ -366,3 +366,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -487,3 +487,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -497,3 +497,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -619,3 +619,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}`),
method: "PATCH",

@@ -629,3 +629,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -761,3 +761,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `connectors/${encodeURIComponent(id)}/oauth/authorize`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/connectors/${encodeURIComponent(id)}/oauth/authorize`),
method: "POST",

@@ -771,3 +771,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -774,0 +774,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -97,3 +97,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets"),
method: "GET",

@@ -107,3 +107,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -274,7 +274,7 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets"),
method: "POST",
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Client-Name": (yield core.Supplier.get(this._options.clientName)) != null
? yield core.Supplier.get(this._options.clientName)
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", "X-Fern-SDK-Version": "7.11.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", "X-Fern-SDK-Version": "7.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers),
queryParameters: _queryParams,

@@ -397,3 +397,3 @@ requestType: "file",

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "datasets/usage"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/datasets/usage"),
method: "GET",

@@ -407,3 +407,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -528,3 +528,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/datasets/${encodeURIComponent(id)}`),
method: "GET",

@@ -538,3 +538,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -659,3 +659,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/datasets/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -669,3 +669,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -672,0 +672,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -76,3 +76,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "embed-jobs"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/embed-jobs"),
method: "GET",

@@ -86,3 +86,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -211,3 +211,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "embed-jobs"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/embed-jobs"),
method: "POST",

@@ -221,3 +221,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -347,3 +347,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `embed-jobs/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/embed-jobs/${encodeURIComponent(id)}`),
method: "GET",

@@ -357,3 +357,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -478,3 +478,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `embed-jobs/${encodeURIComponent(id)}/cancel`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/embed-jobs/${encodeURIComponent(id)}/cancel`),
method: "POST",

@@ -488,3 +488,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -491,0 +491,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -84,3 +84,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "finetuning/finetuned-models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/finetuning/finetuned-models"),
method: "GET",

@@ -94,3 +94,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -177,3 +177,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "finetuning/finetuned-models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/finetuning/finetuned-models"),
method: "POST",

@@ -187,3 +187,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -266,3 +266,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "GET",

@@ -276,3 +276,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -350,3 +350,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "DELETE",

@@ -360,3 +360,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -443,3 +443,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(id)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(id)}`),
method: "PATCH",

@@ -453,3 +453,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -544,3 +544,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/events`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/events`),
method: "GET",

@@ -554,3 +554,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -638,3 +638,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/training-step-metrics`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/finetuning/finetuned-models/${encodeURIComponent(finetunedModelId)}/training-step-metrics`),
method: "GET",

@@ -648,3 +648,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -651,0 +651,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -5,2 +5,3 @@ export * from "./BaseType";

export * from "./Hyperparameters";
export * from "./WandbConfig";
export * from "./Settings";

@@ -7,0 +8,0 @@ export * from "./Status";

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./Hyperparameters"), exports);
__exportStar(require("./WandbConfig"), exports);
__exportStar(require("./Settings"), exports);

@@ -23,0 +24,0 @@ __exportStar(require("./Status"), exports);

@@ -17,2 +17,4 @@ /**

multiLabel?: boolean;
/** The Weights & Biases configuration. */
wandb?: Cohere.finetuning.WandbConfig;
}

@@ -0,1 +1,3 @@

export * as v2 from "./v2";
export * from "./v2/types";
export * as embedJobs from "./embedJobs";

@@ -8,2 +10,3 @@ export * from "./embedJobs/types";

export * as models from "./models";
export * from "./v2/client/requests";
export * from "./embedJobs/client/requests";

@@ -10,0 +13,0 @@ export * from "./datasets/client/requests";

@@ -29,3 +29,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.models = exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = void 0;
exports.models = exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = exports.v2 = void 0;
exports.v2 = __importStar(require("./v2"));
__exportStar(require("./v2/types"), exports);
exports.embedJobs = __importStar(require("./embedJobs"));

@@ -38,2 +40,3 @@ __exportStar(require("./embedJobs/types"), exports);

exports.models = __importStar(require("./models"));
__exportStar(require("./v2/client/requests"), exports);
__exportStar(require("./embedJobs/client/requests"), exports);

@@ -40,0 +43,0 @@ __exportStar(require("./datasets/client/requests"), exports);

@@ -77,3 +77,3 @@ "use strict";

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `models/${encodeURIComponent(model)}`),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, `v1/models/${encodeURIComponent(model)}`),
method: "GET",

@@ -87,3 +87,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -222,3 +222,3 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "models"),
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CohereEnvironment.Production, "v1/models"),
method: "GET",

@@ -232,3 +232,3 @@ headers: {

"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.11.2",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-Runtime": core.RUNTIME.type,

@@ -235,0 +235,0 @@ "X-Fern-Runtime-Version": core.RUNTIME.version,

@@ -7,2 +7,3 @@ /**

import * as Cohere from "./api/index";
import { V2 } from "./api/resources/v2/client/Client";
import { EmbedJobs } from "./api/resources/embedJobs/client/Client";

@@ -316,2 +317,4 @@ import { Datasets } from "./api/resources/datasets/client/Client";

checkApiKey(requestOptions?: CohereClient.RequestOptions): Promise<Cohere.CheckApiKeyResponse>;
protected _v2: V2 | undefined;
get v2(): V2;
protected _embedJobs: EmbedJobs | undefined;

@@ -318,0 +321,0 @@ get embedJobs(): EmbedJobs;

@@ -5,4 +5,4 @@ /**

export declare const CohereEnvironment: {
readonly Production: "https://api.cohere.com/v1";
readonly Production: "https://api.cohere.com";
};
export declare type CohereEnvironment = typeof CohereEnvironment.Production;

@@ -8,3 +8,3 @@ "use strict";

exports.CohereEnvironment = {
Production: "https://api.cohere.com/v1",
Production: "https://api.cohere.com",
};

@@ -0,6 +1,7 @@

export * as Cohere from "./api";
export { BedrockClient } from "./BedrockClient";
export { CohereClient } from "./Client";
export { SagemakerClient } from "./SagemakerClient";
export * as Cohere from "./api";
export { CohereClientV2 } from "./ClientV2";
export { CohereEnvironment } from "./environments";
export { CohereError, CohereTimeoutError } from "./errors";
export { SagemakerClient } from "./SagemakerClient";

@@ -26,3 +26,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.CohereTimeoutError = exports.CohereError = exports.CohereEnvironment = exports.Cohere = exports.SagemakerClient = exports.CohereClient = exports.BedrockClient = void 0;
exports.SagemakerClient = exports.CohereTimeoutError = exports.CohereError = exports.CohereEnvironment = exports.CohereClientV2 = exports.CohereClient = exports.BedrockClient = exports.Cohere = void 0;
exports.Cohere = __importStar(require("./api"));
var BedrockClient_1 = require("./BedrockClient");

@@ -32,5 +33,4 @@ Object.defineProperty(exports, "BedrockClient", { enumerable: true, get: function () { return BedrockClient_1.BedrockClient; } });

Object.defineProperty(exports, "CohereClient", { enumerable: true, get: function () { return Client_1.CohereClient; } });
var SagemakerClient_1 = require("./SagemakerClient");
Object.defineProperty(exports, "SagemakerClient", { enumerable: true, get: function () { return SagemakerClient_1.SagemakerClient; } });
exports.Cohere = __importStar(require("./api"));
var ClientV2_1 = require("./ClientV2");
Object.defineProperty(exports, "CohereClientV2", { enumerable: true, get: function () { return ClientV2_1.CohereClientV2; } });
var environments_1 = require("./environments");

@@ -41,1 +41,3 @@ Object.defineProperty(exports, "CohereEnvironment", { enumerable: true, get: function () { return environments_1.CohereEnvironment; } });

Object.defineProperty(exports, "CohereTimeoutError", { enumerable: true, get: function () { return errors_1.CohereTimeoutError; } });
var SagemakerClient_1 = require("./SagemakerClient");
Object.defineProperty(exports, "SagemakerClient", { enumerable: true, get: function () { return SagemakerClient_1.SagemakerClient; } });

@@ -5,2 +5,3 @@ export * from "./BaseType";

export * from "./Hyperparameters";
export * from "./WandbConfig";
export * from "./Settings";

@@ -7,0 +8,0 @@ export * from "./Status";

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./Hyperparameters"), exports);
__exportStar(require("./WandbConfig"), exports);
__exportStar(require("./Settings"), exports);

@@ -23,0 +24,0 @@ __exportStar(require("./Status"), exports);

@@ -9,2 +9,3 @@ /**

import { Hyperparameters } from "./Hyperparameters";
import { WandbConfig } from "./WandbConfig";
export declare const Settings: core.serialization.ObjectSchema<serializers.finetuning.Settings.Raw, Cohere.finetuning.Settings>;

@@ -17,3 +18,4 @@ export declare namespace Settings {

multi_label?: boolean | null;
wandb?: WandbConfig.Raw | null;
}
}

@@ -33,2 +33,3 @@ "use strict";

const Hyperparameters_1 = require("./Hyperparameters");
const WandbConfig_1 = require("./WandbConfig");
exports.Settings = core.serialization.object({

@@ -39,2 +40,3 @@ baseModel: core.serialization.property("base_model", BaseModel_1.BaseModel),

multiLabel: core.serialization.property("multi_label", core.serialization.boolean().optional()),
wandb: WandbConfig_1.WandbConfig.optional(),
});

@@ -0,1 +1,3 @@

export * as v2 from "./v2";
export * from "./v2/types";
export * as embedJobs from "./embedJobs";

@@ -6,2 +8,3 @@ export * from "./embedJobs/types";

export * as finetuning from "./finetuning";
export * from "./v2/client/requests";
export * from "./embedJobs/client/requests";

@@ -8,0 +11,0 @@ export * as connectors from "./connectors";

@@ -29,3 +29,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = void 0;
exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = exports.v2 = void 0;
exports.v2 = __importStar(require("./v2"));
__exportStar(require("./v2/types"), exports);
exports.embedJobs = __importStar(require("./embedJobs"));

@@ -36,2 +38,3 @@ __exportStar(require("./embedJobs/types"), exports);

exports.finetuning = __importStar(require("./finetuning"));
__exportStar(require("./v2/client/requests"), exports);
__exportStar(require("./embedJobs/client/requests"), exports);

@@ -38,0 +41,0 @@ exports.connectors = __importStar(require("./connectors"));

@@ -5,4 +5,4 @@ /**

export declare const CohereEnvironment: {
readonly Production: "https://api.cohere.com/v1";
readonly Production: "https://api.cohere.com";
};
export declare type CohereEnvironment = typeof CohereEnvironment.Production;

@@ -8,3 +8,3 @@ "use strict";

exports.CohereEnvironment = {
Production: "https://api.cohere.com/v1",
Production: "https://api.cohere.com",
};

@@ -0,6 +1,7 @@

export * as Cohere from "./api";
export { BedrockClient } from "./BedrockClient";
export { CohereClient } from "./Client";
export { SagemakerClient } from "./SagemakerClient";
export * as Cohere from "./api";
export { CohereClientV2 } from "./ClientV2";
export { CohereEnvironment } from "./environments";
export { CohereError, CohereTimeoutError } from "./errors";
export { SagemakerClient } from "./SagemakerClient";

@@ -26,3 +26,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.CohereTimeoutError = exports.CohereError = exports.CohereEnvironment = exports.Cohere = exports.SagemakerClient = exports.CohereClient = exports.BedrockClient = void 0;
exports.SagemakerClient = exports.CohereTimeoutError = exports.CohereError = exports.CohereEnvironment = exports.CohereClientV2 = exports.CohereClient = exports.BedrockClient = exports.Cohere = void 0;
exports.Cohere = __importStar(require("./api"));
var BedrockClient_1 = require("./BedrockClient");

@@ -32,5 +33,4 @@ Object.defineProperty(exports, "BedrockClient", { enumerable: true, get: function () { return BedrockClient_1.BedrockClient; } });

Object.defineProperty(exports, "CohereClient", { enumerable: true, get: function () { return Client_1.CohereClient; } });
var SagemakerClient_1 = require("./SagemakerClient");
Object.defineProperty(exports, "SagemakerClient", { enumerable: true, get: function () { return SagemakerClient_1.SagemakerClient; } });
exports.Cohere = __importStar(require("./api"));
var ClientV2_1 = require("./ClientV2");
Object.defineProperty(exports, "CohereClientV2", { enumerable: true, get: function () { return ClientV2_1.CohereClientV2; } });
var environments_1 = require("./environments");

@@ -41,1 +41,3 @@ Object.defineProperty(exports, "CohereEnvironment", { enumerable: true, get: function () { return environments_1.CohereEnvironment; } });

Object.defineProperty(exports, "CohereTimeoutError", { enumerable: true, get: function () { return errors_1.CohereTimeoutError; } });
var SagemakerClient_1 = require("./SagemakerClient");
Object.defineProperty(exports, "SagemakerClient", { enumerable: true, get: function () { return SagemakerClient_1.SagemakerClient; } });
{
"name": "cohere-ai",
"version": "7.11.2",
"version": "7.12.0",
"private": false,

@@ -5,0 +5,0 @@ "repository": "https://github.com/cohere-ai/cohere-typescript",

@@ -60,2 +60,179 @@ # Reference

## V2
<details><summary><code>client.v2.<a href="/src/api/resources/v2/client/Client.ts">chatStream</a>({ ...params }) -> core.Stream<Cohere.StreamedChatResponse2></code></summary>
<dl>
<dd>
#### 🔌 Usage
<dl>
<dd>
<dl>
<dd>
```typescript
await client.v2.chatStream({
model: "string",
messages: [
{
role: "assistant",
toolCalls: [
{
id: "string",
type: "function",
function: {
name: "string",
arguments: "string",
},
},
],
toolPlan: "string",
content: [
{
text: "string",
},
],
citations: [
{
start: "string",
end: "string",
text: "string",
sources: [
{
type: "tool",
id: "string",
toolOutput: {
string: {
key: "value",
},
},
},
],
},
],
},
],
tools: [
{
type: "function",
function: {
name: "string",
description: "string",
parameters: {
string: {
key: "value",
},
},
},
},
],
toolChoice: Cohere.V2ChatStreamRequestToolChoice.Auto,
citationMode: Cohere.V2ChatStreamRequestCitationMode.Fast,
truncationMode: Cohere.V2ChatStreamRequestTruncationMode.Off,
responseFormat: {
type: "json_object",
schema: {
string: {
key: "value",
},
},
},
maxTokens: 1,
stopSequences: ["string"],
maxInputTokens: 1,
temperature: 1.1,
seed: 1,
frequencyPenalty: 1.1,
presencePenalty: 1.1,
k: 1,
p: 1,
returnPrompt: true,
});
```
</dd>
</dl>
</dd>
</dl>
#### ⚙️ Parameters
<dl>
<dd>
<dl>
<dd>
**request:** `Cohere.V2ChatStreamRequest`
</dd>
</dl>
<dl>
<dd>
**requestOptions:** `V2.RequestOptions`
</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</details>
<details><summary><code>client.v2.<a href="/src/api/resources/v2/client/Client.ts">chat</a>({ ...params }) -> Cohere.NonStreamedChatResponse2</code></summary>
<dl>
<dd>
#### 🔌 Usage
<dl>
<dd>
<dl>
<dd>
```typescript
await client.v2.chat({
model: "model",
messages: [],
});
```
</dd>
</dl>
</dd>
</dl>
#### ⚙️ Parameters
<dl>
<dd>
<dl>
<dd>
**request:** `Cohere.V2ChatRequest`
</dd>
</dl>
<dl>
<dd>
**requestOptions:** `V2.RequestOptions`
</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</details>
## EmbedJobs

@@ -62,0 +239,0 @@

@@ -5,2 +5,3 @@ export * from "./BaseType";

export * from "./Hyperparameters";
export * from "./WandbConfig";
export * from "./Settings";

@@ -7,0 +8,0 @@ export * from "./Status";

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./Hyperparameters"), exports);
__exportStar(require("./WandbConfig"), exports);
__exportStar(require("./Settings"), exports);

@@ -23,0 +24,0 @@ __exportStar(require("./Status"), exports);

@@ -9,2 +9,3 @@ /**

import { Hyperparameters } from "./Hyperparameters";
import { WandbConfig } from "./WandbConfig";
export declare const Settings: core.serialization.ObjectSchema<serializers.finetuning.Settings.Raw, Cohere.finetuning.Settings>;

@@ -17,3 +18,4 @@ export declare namespace Settings {

multi_label?: boolean | null;
wandb?: WandbConfig.Raw | null;
}
}

@@ -33,2 +33,3 @@ "use strict";

const Hyperparameters_1 = require("./Hyperparameters");
const WandbConfig_1 = require("./WandbConfig");
exports.Settings = core.serialization.object({

@@ -39,2 +40,3 @@ baseModel: core.serialization.property("base_model", BaseModel_1.BaseModel),

multiLabel: core.serialization.property("multi_label", core.serialization.boolean().optional()),
wandb: WandbConfig_1.WandbConfig.optional(),
});

@@ -0,1 +1,3 @@

export * as v2 from "./v2";
export * from "./v2/types";
export * as embedJobs from "./embedJobs";

@@ -6,2 +8,3 @@ export * from "./embedJobs/types";

export * as finetuning from "./finetuning";
export * from "./v2/client/requests";
export * from "./embedJobs/client/requests";

@@ -8,0 +11,0 @@ export * as connectors from "./connectors";

@@ -29,3 +29,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = void 0;
exports.connectors = exports.finetuning = exports.datasets = exports.embedJobs = exports.v2 = void 0;
exports.v2 = __importStar(require("./v2"));
__exportStar(require("./v2/types"), exports);
exports.embedJobs = __importStar(require("./embedJobs"));

@@ -36,2 +38,3 @@ __exportStar(require("./embedJobs/types"), exports);

exports.finetuning = __importStar(require("./finetuning"));
__exportStar(require("./v2/client/requests"), exports);
__exportStar(require("./embedJobs/client/requests"), exports);

@@ -38,0 +41,0 @@ exports.connectors = __importStar(require("./connectors"));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc