/opt/canhelp/node_modules/openai/src/resources
NameSizeModeActions
audio/-0755rm
beta/-0755rm
chat/-0755rm
containers/-0755rm
conversations/-0755rm
evals/-0755rm
fine-tuning/-0755rm
graders/-0755rm
realtime/-0755rm
responses/-0755rm
skills/-0755rm
uploads/-0755rm
vector-stores/-0755rm
webhooks/-0755rm
audio.ts1190644editdlrm
batches.ts96780644editdlrm
beta.ts1180644editdlrm
chat.ts1180644editdlrm
completions.ts135260644editdlrm
containers.ts1240644editdlrm
conversations.ts1270644editdlrm
embeddings.ts58630644editdlrm
evals.ts1190644editdlrm
files.ts78410644editdlrm
fine-tuning.ts1250644editdlrm
graders.ts1210644editdlrm
images.ts259680644editdlrm
index.ts41570644editdlrm
models.ts20860644editdlrm
moderations.ts96390644editdlrm
realtime.ts1220644editdlrm
responses.ts1230644editdlrm
shared.ts123630644editdlrm
skills.ts1200644editdlrm
uploads.ts1210644editdlrm
vector-stores.ts1270644editdlrm
videos.ts103310644editdlrm
webhooks.ts1220644editdlrm
Edit: /opt/canhelp/node_modules/openai/src/resources/models.ts (2086B)
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { APIPromise } from '../core/api-promise'; import { Page, PagePromise } from '../core/pagination'; import { RequestOptions } from '../internal/request-options'; import { path } from '../internal/utils/path'; /** * List and describe the various models available in the API. */ export class Models extends APIResource { /** * Retrieves a model instance, providing basic information about the model such as * the owner and permissioning. */ retrieve(model: string, options?: RequestOptions): APIPromise { return this._client.get(path`/models/${model}`, options); } /** * Lists the currently available models, and provides basic information about each * one such as the owner and availability. */ list(options?: RequestOptions): PagePromise { return this._client.getAPIList('/models', Page, options); } /** * Delete a fine-tuned model. You must have the Owner role in your organization to * delete a model. */ delete(model: string, options?: RequestOptions): APIPromise { return this._client.delete(path`/models/${model}`, options); } } // Note: no pagination actually occurs yet, this is for forwards-compatibility. export type ModelsPage = Page; /** * Describes an OpenAI model offering that can be used with the API. */ export interface Model { /** * The model identifier, which can be referenced in the API endpoints. */ id: string; /** * The Unix timestamp (in seconds) when the model was created. */ created: number; /** * The object type, which is always "model". */ object: 'model'; /** * The organization that owns the model. */ owned_by: string; } export interface ModelDeleted { id: string; deleted: boolean; object: string; } export declare namespace Models { export { type Model as Model, type ModelDeleted as ModelDeleted, type ModelsPage as ModelsPage }; }