OpenAI
OpenAI API.
Functions
Retrieves an assistant.
Create an assistant with a model and instructions.
Update an assistant.
Returns a list of assistants.
Retrieves a batch.
Creates and executes a batch from an uploaded file of requests.
Immediately cancel a fine-tune job.
Cancels a run that is Status.InProgress.
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 with event streaming.
Create a thread and run it in one request with event streaming.
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 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 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 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.
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.
Returns a list of messages for a given thread.
Classifies if a text violates OpenAI's Content Policy.
Returns a list of runs belonging to a thread.
Retrieves a run step.
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 using event streaming.
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.