Socket
Socket
Sign inDemoInstall

openai

Package Overview
Dependencies
Maintainers
0
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai - npm Package Compare versions

Comparing version 4.52.0 to 4.52.1

8

index.d.ts

@@ -1,5 +0,5 @@

import * as Core from "./core.js";
import * as Errors from "./error.js";
import * as Uploads from "./uploads.js";
import { type Agent, type RequestInit } from "./_shims/index.js";
import * as Uploads from "./uploads.js";
import * as Core from "./core.js";
import * as Pagination from "./pagination.js";

@@ -75,3 +75,5 @@ import * as API from "./resources/index.js";

}
/** API Client for interfacing with the OpenAI API. */
/**
* API Client for interfacing with the OpenAI API.
*/
export declare class OpenAI extends Core.APIClient {

@@ -78,0 +80,0 @@ apiKey: string;

@@ -29,8 +29,10 @@ "use strict";

exports.AzureOpenAI = exports.fileFromPath = exports.toFile = exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.OpenAIError = exports.OpenAI = void 0;
const Core = __importStar(require("./core.js"));
const Errors = __importStar(require("./error.js"));
const Uploads = __importStar(require("./uploads.js"));
const Core = __importStar(require("./core.js"));
const Pagination = __importStar(require("./pagination.js"));
const API = __importStar(require("./resources/index.js"));
/** API Client for interfacing with the OpenAI API. */
/**
* API Client for interfacing with the OpenAI API.
*/
class OpenAI extends Core.APIClient {

@@ -37,0 +39,0 @@ /**

{
"name": "openai",
"version": "4.52.0",
"version": "4.52.1",
"description": "The official TypeScript library for the OpenAI API",

@@ -5,0 +5,0 @@ "author": "OpenAI <support@openai.com>",

@@ -22,3 +22,3 @@ # OpenAI Node API Library

```ts
import OpenAI from 'https://deno.land/x/openai@v4.52.0/mod.ts';
import OpenAI from 'https://deno.land/x/openai@v4.52.1/mod.ts';
```

@@ -25,0 +25,0 @@

@@ -0,5 +1,5 @@

import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import { APIResource } from "../../resource.js";
import * as SpeechAPI from "./speech.js";
import { type Response } from "../../_shims/index.js";
import * as SpeechAPI from "./speech.js";
export declare class Speech extends APIResource {

@@ -6,0 +6,0 @@ /**

@@ -0,5 +1,4 @@

import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import { APIResource } from "../../resource.js";
import * as TranscriptionsAPI from "./transcriptions.js";
import { type Uploadable } from "../../core.js";
export declare class Transcriptions extends APIResource {

@@ -26,3 +25,3 @@ /**

*/
file: Uploadable;
file: Core.Uploadable;
/**

@@ -29,0 +28,0 @@ * ID of the model to use. Only `whisper-1` (which is powered by our open source

"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transcriptions = void 0;
const resource_1 = require("../../resource.js");
const core_1 = require("../../core.js");
const Core = __importStar(require("../../core.js"));
class Transcriptions extends resource_1.APIResource {

@@ -12,3 +35,3 @@ /**

create(body, options) {
return this._client.post('/audio/transcriptions', (0, core_1.multipartFormRequestOptions)({ body, ...options }));
return this._client.post('/audio/transcriptions', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -15,0 +38,0 @@ }

@@ -0,5 +1,4 @@

import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import { APIResource } from "../../resource.js";
import * as TranslationsAPI from "./translations.js";
import { type Uploadable } from "../../core.js";
export declare class Translations extends APIResource {

@@ -19,3 +18,3 @@ /**

*/
file: Uploadable;
file: Core.Uploadable;
/**

@@ -22,0 +21,0 @@ * ID of the model to use. Only `whisper-1` (which is powered by our open source

"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Translations = void 0;
const resource_1 = require("../../resource.js");
const core_1 = require("../../core.js");
const Core = __importStar(require("../../core.js"));
class Translations extends resource_1.APIResource {

@@ -12,3 +35,3 @@ /**

create(body, options) {
return this._client.post('/audio/translations', (0, core_1.multipartFormRequestOptions)({ body, ...options }));
return this._client.post('/audio/translations', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -15,0 +38,0 @@ }

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

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import * as BatchesAPI from "./batches.js";

@@ -4,0 +4,0 @@ import { CursorPage, type CursorPageParams } from "../pagination.js";

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

import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import { APIResource } from "../../resource.js";
import * as AssistantsAPI from "./assistants.js";

@@ -4,0 +4,0 @@ import * as Shared from "../shared.js";

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

import { APIResource } from "../../../resource.js";
import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import * as MessagesAPI from "./messages.js";

@@ -4,0 +4,0 @@ import * as AssistantsAPI from "../assistants.js";

@@ -0,4 +1,4 @@

import { APIResource } from "../../../../resource.js";
import { APIPromise } from "../../../../core.js";
import * as Core from "../../../../core.js";
import { APIPromise } from "../../../../core.js";
import { APIResource } from "../../../../resource.js";
import { AssistantStream, RunCreateParamsBaseStream } from "../../../../lib/AssistantStream.js";

@@ -5,0 +5,0 @@ import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream.js";

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

import { APIResource } from "../../../../resource.js";
import * as Core from "../../../../core.js";
import { APIResource } from "../../../../resource.js";
import * as StepsAPI from "./steps.js";

@@ -4,0 +4,0 @@ import { CursorPage, type CursorPageParams } from "../../../../pagination.js";

@@ -1,5 +0,5 @@

import * as Core from "../../../core.js";
import { APIPromise } from "../../../core.js";
import { APIResource } from "../../../resource.js";
import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from "../../../lib/AssistantStream.js";
import { APIPromise } from "../../../core.js";
import * as Core from "../../../core.js";
import * as ThreadsAPI from "./threads.js";

@@ -6,0 +6,0 @@ import * as AssistantsAPI from "../assistants.js";

@@ -1,4 +0,4 @@

import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import { Uploadable } from "../../../core.js";
import * as Core from "../../../core.js";
import * as FileBatchesAPI from "./file-batches.js";

@@ -5,0 +5,0 @@ import * as FilesAPI from "./files.js";

@@ -1,4 +0,4 @@

import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import { Uploadable } from "../../../core.js";
import * as Core from "../../../core.js";
import * as FilesAPI from "./files.js";

@@ -5,0 +5,0 @@ import { CursorPage, type CursorPageParams } from "../../../pagination.js";

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

const core_1 = require("../../../core.js");
const core_2 = require("../../../core.js");
const FilesAPI = __importStar(require("./files.js"));

@@ -117,3 +116,3 @@ const pagination_1 = require("../../../pagination.js");

}
await (0, core_2.sleep)(sleepInterval);
await (0, core_1.sleep)(sleepInterval);
break;

@@ -120,0 +119,0 @@ case 'failed':

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

import { APIResource } from "../../../resource.js";
import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import * as VectorStoresAPI from "./vector-stores.js";

@@ -4,0 +4,0 @@ import * as FileBatchesAPI from "./file-batches.js";

@@ -0,4 +1,4 @@

import { APIResource } from "../../resource.js";
import { APIPromise } from "../../core.js";
import * as Core from "../../core.js";
import { APIPromise } from "../../core.js";
import { APIResource } from "../../resource.js";
import * as ChatCompletionsAPI from "./completions.js";

@@ -686,3 +686,4 @@ import * as CompletionsAPI from "../completions.js";

* exhausted.
* - If set to 'default', the request will be processed in the shared cluster.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
*

@@ -689,0 +690,0 @@ * When this parameter is set, the response body will include the `service_tier`

@@ -0,4 +1,4 @@

import { APIResource } from "../resource.js";
import { APIPromise } from "../core.js";
import * as Core from "../core.js";
import { APIPromise } from "../core.js";
import { APIResource } from "../resource.js";
import * as CompletionsAPI from "./completions.js";

@@ -5,0 +5,0 @@ import * as ChatCompletionsAPI from "./chat/completions.js";

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

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import * as EmbeddingsAPI from "./embeddings.js";

@@ -4,0 +4,0 @@ export declare class Embeddings extends APIResource {

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

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import { type Response } from "../_shims/index.js";
import * as FilesAPI from "./files.js";
import { type Uploadable } from "../core.js";
import { Page } from "../pagination.js";
import { type Response } from "../_shims/index.js";
export declare class Files extends APIResource {

@@ -119,3 +118,3 @@ /**

*/
file: Uploadable;
file: Core.Uploadable;
/**

@@ -122,0 +121,0 @@ * The intended purpose of the uploaded file.

@@ -32,4 +32,4 @@ "use strict";

const error_1 = require("../error.js");
const Core = __importStar(require("../core.js"));
const FilesAPI = __importStar(require("./files.js"));
const core_3 = require("../core.js");
const pagination_1 = require("../pagination.js");

@@ -61,3 +61,3 @@ class Files extends resource_1.APIResource {

create(body, options) {
return this._client.post('/files', (0, core_3.multipartFormRequestOptions)({ body, ...options }));
return this._client.post('/files', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -64,0 +64,0 @@ /**

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

import { APIResource } from "../../../resource.js";
import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import * as CheckpointsAPI from "./checkpoints.js";

@@ -4,0 +4,0 @@ import { CursorPage, type CursorPageParams } from "../../../pagination.js";

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

import { APIResource } from "../../../resource.js";
import * as Core from "../../../core.js";
import { APIResource } from "../../../resource.js";
import * as JobsAPI from "./jobs.js";

@@ -4,0 +4,0 @@ import * as CheckpointsAPI from "./checkpoints.js";

@@ -0,5 +1,4 @@

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import * as ImagesAPI from "./images.js";
import { type Uploadable } from "../core.js";
export declare class Images extends APIResource {

@@ -47,3 +46,3 @@ /**

*/
image: Uploadable;
image: Core.Uploadable;
/**

@@ -82,3 +81,3 @@ * The model to use for image generation. Only `dall-e-2` is supported at this

*/
image: Uploadable;
image: Core.Uploadable;
/**

@@ -94,3 +93,3 @@ * A text description of the desired image(s). The maximum length is 1000

*/
mask?: Uploadable;
mask?: Core.Uploadable;
/**

@@ -97,0 +96,0 @@ * The model to use for image generation. Only `dall-e-2` is supported at this

"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Images = void 0;
const resource_1 = require("../resource.js");
const core_1 = require("../core.js");
const Core = __importStar(require("../core.js"));
class Images extends resource_1.APIResource {

@@ -12,3 +35,3 @@ /**

createVariation(body, options) {
return this._client.post('/images/variations', (0, core_1.multipartFormRequestOptions)({ body, ...options }));
return this._client.post('/images/variations', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -19,3 +42,3 @@ /**

edit(body, options) {
return this._client.post('/images/edits', (0, core_1.multipartFormRequestOptions)({ body, ...options }));
return this._client.post('/images/edits', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -22,0 +45,0 @@ /**

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

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import * as ModelsAPI from "./models.js";

@@ -4,0 +4,0 @@ import { Page } from "../pagination.js";

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

import { APIResource } from "../resource.js";
import * as Core from "../core.js";
import { APIResource } from "../resource.js";
import * as ModerationsAPI from "./moderations.js";

@@ -4,0 +4,0 @@ export declare class Moderations extends APIResource {

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from './core';
import * as Errors from './error';
import * as Uploads from './uploads';
import { type Agent, type RequestInit } from './_shims/index';
import * as Uploads from './uploads';
import * as Core from './core';
import * as Pagination from './pagination';

@@ -89,3 +89,5 @@ import * as API from './resources/index';

/** API Client for interfacing with the OpenAI API. */
/**
* API Client for interfacing with the OpenAI API.
*/
export class OpenAI extends Core.APIClient {

@@ -147,2 +149,3 @@ apiKey: string;

});
this._options = options;

@@ -149,0 +152,0 @@

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as SpeechAPI from './speech';
import { type Response } from '../../_shims/index';
import * as SpeechAPI from './speech';

@@ -8,0 +8,0 @@ export class Speech extends APIResource {

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as TranscriptionsAPI from './transcriptions';
import { type Uploadable, multipartFormRequestOptions } from '../../core';

@@ -13,3 +12,3 @@ export class Transcriptions extends APIResource {

create(body: TranscriptionCreateParams, options?: Core.RequestOptions): Core.APIPromise<Transcription> {
return this._client.post('/audio/transcriptions', multipartFormRequestOptions({ body, ...options }));
return this._client.post('/audio/transcriptions', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -34,3 +33,3 @@ }

*/
file: Uploadable;
file: Core.Uploadable;

@@ -37,0 +36,0 @@ /**

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as TranslationsAPI from './translations';
import { type Uploadable, multipartFormRequestOptions } from '../../core';

@@ -13,3 +12,3 @@ export class Translations extends APIResource {

create(body: TranslationCreateParams, options?: Core.RequestOptions): Core.APIPromise<Translation> {
return this._client.post('/audio/translations', multipartFormRequestOptions({ body, ...options }));
return this._client.post('/audio/translations', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -27,3 +26,3 @@ }

*/
file: Uploadable;
file: Core.Uploadable;

@@ -30,0 +29,0 @@ /**

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as BatchesAPI from './batches';

@@ -7,0 +7,0 @@ import { CursorPage, type CursorPageParams } from '../pagination';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../core';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as AssistantsAPI from './assistants';

@@ -7,0 +7,0 @@ import * as Shared from '../shared';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as MessagesAPI from './messages';

@@ -7,0 +7,0 @@ import * as AssistantsAPI from '../assistants';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../../core';
import { APIPromise } from '../../../../core';
import { APIResource } from '../../../../resource';
import { isRequestOptions } from '../../../../core';
import { APIPromise } from '../../../../core';
import * as Core from '../../../../core';
import { AssistantStream, RunCreateParamsBaseStream } from '../../../../lib/AssistantStream';

@@ -8,0 +8,0 @@ import { sleep } from '../../../../core';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../../core';
import { APIResource } from '../../../../resource';
import { isRequestOptions } from '../../../../core';
import * as Core from '../../../../core';
import * as StepsAPI from './steps';

@@ -7,0 +7,0 @@ import { CursorPage, type CursorPageParams } from '../../../../pagination';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIPromise } from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from '../../../lib/AssistantStream';
import { APIPromise } from '../../../core';
import * as Core from '../../../core';
import * as ThreadsAPI from './threads';

@@ -9,0 +9,0 @@ import * as AssistantsAPI from '../assistants';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIResource } from '../../../resource';

@@ -9,2 +8,3 @@ import { isRequestOptions } from '../../../core';

import { allSettledWithThrow } from '../../../lib/Util';
import * as Core from '../../../core';
import * as FileBatchesAPI from './file-batches';

@@ -11,0 +11,0 @@ import * as FilesAPI from './files';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
import { sleep, Uploadable, isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import { sleep, Uploadable } from '../../../core';
import * as FilesAPI from './files';

@@ -8,0 +7,0 @@ import { CursorPage, type CursorPageParams } from '../../../pagination';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as VectorStoresAPI from './vector-stores';

@@ -7,0 +7,0 @@ import * as FileBatchesAPI from './file-batches';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import { APIPromise } from '../../core';
import * as Core from '../../core';
import { APIPromise } from '../../core';
import { APIResource } from '../../resource';
import * as ChatCompletionsAPI from './completions';

@@ -821,3 +821,4 @@ import * as CompletionsAPI from '../completions';

* exhausted.
* - If set to 'default', the request will be processed in the shared cluster.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
*

@@ -824,0 +825,0 @@ * When this parameter is set, the response body will include the `service_tier`

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import { APIPromise } from '../core';
import * as Core from '../core';
import { APIPromise } from '../core';
import { APIResource } from '../resource';
import * as CompletionsAPI from './completions';

@@ -7,0 +7,0 @@ import * as ChatCompletionsAPI from './chat/completions';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import { APIResource } from '../resource';
import * as EmbeddingsAPI from './embeddings';

@@ -6,0 +6,0 @@

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../core';
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import { type Response } from '../_shims/index';
import { sleep } from '../core';
import { APIConnectionTimeoutError } from '../error';
import * as Core from '../core';
import * as FilesAPI from './files';
import { type Uploadable, multipartFormRequestOptions } from '../core';
import { Page } from '../pagination';
import { type Response } from '../_shims/index';

@@ -38,3 +37,3 @@ export class Files extends APIResource {

create(body: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<FileObject> {
return this._client.post('/files', multipartFormRequestOptions({ body, ...options }));
return this._client.post('/files', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -192,3 +191,3 @@

*/
file: Uploadable;
file: Core.Uploadable;

@@ -195,0 +194,0 @@ /**

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as CheckpointsAPI from './checkpoints';

@@ -7,0 +7,0 @@ import { CursorPage, type CursorPageParams } from '../../../pagination';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../../core';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as JobsAPI from './jobs';

@@ -7,0 +7,0 @@ import * as CheckpointsAPI from './checkpoints';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import { APIResource } from '../resource';
import * as ImagesAPI from './images';
import { type Uploadable, multipartFormRequestOptions } from '../core';

@@ -16,3 +15,3 @@ export class Images extends APIResource {

): Core.APIPromise<ImagesResponse> {
return this._client.post('/images/variations', multipartFormRequestOptions({ body, ...options }));
return this._client.post('/images/variations', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -24,3 +23,3 @@

edit(body: ImageEditParams, options?: Core.RequestOptions): Core.APIPromise<ImagesResponse> {
return this._client.post('/images/edits', multipartFormRequestOptions({ body, ...options }));
return this._client.post('/images/edits', Core.multipartFormRequestOptions({ body, ...options }));
}

@@ -69,3 +68,3 @@

*/
image: Uploadable;
image: Core.Uploadable;

@@ -110,3 +109,3 @@ /**

*/
image: Uploadable;
image: Core.Uploadable;

@@ -124,3 +123,3 @@ /**

*/
mask?: Uploadable;
mask?: Core.Uploadable;

@@ -127,0 +126,0 @@ /**

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import { APIResource } from '../resource';
import * as ModelsAPI from './models';

@@ -6,0 +6,0 @@ import { Page } from '../pagination';

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import { APIResource } from '../resource';
import * as ModerationsAPI from './moderations';

@@ -6,0 +6,0 @@

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

export const VERSION = '4.52.0'; // x-release-please-version
export const VERSION = '4.52.1'; // x-release-please-version

@@ -1,2 +0,2 @@

export declare const VERSION = "4.52.0";
export declare const VERSION = "4.52.1";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '4.52.0'; // x-release-please-version
exports.VERSION = '4.52.1'; // x-release-please-version
//# sourceMappingURL=version.js.map

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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