OpenAI
OpenAI API.
Functions
Retrieves an assistant.
Create an assistant with a model and instructions.
Update an assistant.
Returns a list of assistants.
Immediately cancel a fine-tune job.
Cancels a run that is Status.InProgress.
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Creates a completion for the chat message.
Stream variant of chatCompletion.
This is the main endpoint of the API. Returns the predicted completion for the given prompt, and can also return the probabilities of alternative tokens at each position if requested.
Stream variant of completion.
Create a run.
Create a thread and run it in one request.
Create a new vector store.
Create a vector store file by attaching a File to a vector store.
Create a batch of vector store files.
Delete an assistant.
Delete a file. Only owners of organizations can delete files currently.
Delete a fine-tuned model. You must have the Owner role in your organization.
Delete a thread.
Delete a vector store.
Delete a vector store file. This will remove the file from the vector store, but the file itself will not be deleted. To delete the file, OpenAI.delete(fileId)
.
Creates a new edit for the provided input, instruction, and parameters.
Creates an embedding vector representing the input text.
Returns information about a specific file.
Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB.
Returns a list of files that belong to the user's organization.
Gets info about to fine-tune job.
Creates a job that fine-tunes a specified model from a given dataset.
Get fine-grained status updates for fine-tune job.
Get fine-grained status updates for fine-tune job.
Get status updates for a fine-tuning job.
Get info about a fine-tuning job.
Creates a job that fine-tunes a specified model from a given dataset.
List your organization's fine-tuning jobs.
Creates an image given a prompt. Get images as base 64 JSON.
Creates an edited or extended image given an original image and a prompt. Get images as base 64 JSON.
Creates a variation of a given image. Get images as base 64 JSON.
Creates an image given a prompt. Get images as URLs.
Creates an edited or extended image given an original image and a prompt. Get images as URLs.
Creates a variation of a given image. Get images as URLs.
Retrieve a message.
Create a message.
Modify a message.
Retrieves a model instance, providing basic information about the model such as the owner and permission.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Classifies if a text violates OpenAI's Content Policy.
Generates audio from the input text.
When a run has the status: Status.RequiresAction and required action is RequiredAction.SubmitToolOutputs, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
Retrieve a thread.
Create a thread.
Modify a thread.
Transcribes audio into the input language.
Translates audio into English.
Update a vector store.
Retrieve a vector store.
Retrieves a vector store file batch.
Returns a list of vector store files.
Returns a list of vector store files in a batch.
List all vector stores.