Types:
Methods:
client.completions.create({ ...params }) -> Completion
Types:
ChatCompletion
ChatCompletionChunk
ChatCompletionMessage
ChatCompletionMessageParam
ChatCompletionRole
CreateChatCompletionRequestMessage
Methods:
client.chat.completions.create({ ...params }) -> ChatCompletion
Types:
Methods:
client.edits.create({ ...params }) -> Edit
Types:
Methods:
client.embeddings.create({ ...params }) -> CreateEmbeddingResponse
Types:
Methods:
client.files.create({ ...params }) -> FileObject
client.files.retrieve(fileId) -> FileObject
client.files.list() -> FileObjectsPage
client.files.del(fileId) -> FileDeleted
client.files.retrieveContent(fileId) -> string
client.files.waitForProcessing(id, { pollInterval = 5000, maxWait = 30 _ 60 _ 1000 }) -> Promise<FileObject>
Types:
Methods:
client.images.createVariation({ ...params }) -> ImagesResponse
client.images.edit({ ...params }) -> ImagesResponse
client.images.generate({ ...params }) -> ImagesResponse
Types:
Methods:
client.audio.transcriptions.create({ ...params }) -> Transcription
Types:
Methods:
client.audio.translations.create({ ...params }) -> Translation
Types:
Methods:
client.moderations.create({ ...params }) -> ModerationCreateResponse
Types:
Methods:
client.models.retrieve(model) -> Model
client.models.list() -> ModelsPage
client.models.del(model) -> ModelDeleted
Types:
Methods:
client.fineTuning.jobs.create({ ...params }) -> FineTuningJob
client.fineTuning.jobs.retrieve(fineTuningJobId) -> FineTuningJob
client.fineTuning.jobs.list({ ...params }) -> FineTuningJobsPage
client.fineTuning.jobs.cancel(fineTuningJobId) -> FineTuningJob
client.fineTuning.jobs.listEvents(fineTuningJobId, { ...params }) -> FineTuningJobEventsPage
Types:
Methods:
client.fineTunes.create({ ...params }) -> FineTune
client.fineTunes.retrieve(fineTuneId) -> FineTune
client.fineTunes.list() -> FineTunesPage
client.fineTunes.cancel(fineTuneId) -> FineTune
client.fineTunes.listEvents(fineTuneId, { ...params }) -> FineTuneEventsListResponse