import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";
Methods
Immediately cancel a fine-tune job.
Immediately cancel a fine-tune job.
Create an assistant with a model and instructions.
Creates a completion for the chat message
Creates a completion for the provided prompt and parameters
Creates a new edit for the provided input, instruction, and parameters
Creates an embedding vector representing the input text.
Creates a job that fine-tunes a specified model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Creates a job that fine-tunes a specified model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Creates an image given a prompt.
Creates an edited or extended image given an original image and a prompt.
Creates a variation of a given image.
Create a message.
Classifies if text violates OpenAI's Content Policy
Generates audio from the input text.
Create a thread.
A run object.
Transcribes audio into the input language.
Translates audio into into English.
Delete an assistant.
Delete an assistant file.
Delete a file.
Delete a fine-tuned model. You must have the Owner role in your organization.
Delete a thread.
Alias for OpenAI#retrieveFile. This method is deprecated and will be removed in a future version.
Alias for OpenAI#this.listFiles. This method is deprecated and will be removed in a future version.
Returns a list of assistant files.
Returns a list of assistants.
Returns a list of files that belong to the user's organization.
Get fine-grained status updates for a fine-tune job.
List your organization's fine-tuning jobs
List your organization's fine-tuning jobs
Returns a list of message files.
Returns a list of messages for a given thread.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Returns a list of runs belonging to a thread.
Returns a list of run steps belonging to a run.
Modifies an assistant.
Modifies a message.
Modifies a thread.
Retrieves an assistant.
Retrieves an AssistantFile.
Returns information about a specific file.
Returns the contents of the specified file
Gets info about the fine-tune job.
Get info about a fine-tuning job.
Retrieve a message.
Retrieves a message file.
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Retrieves a run.
Retrieves a run step.
Retrieves a thread.
When a run has the status: "requiresAction"
and requiredAction.type
is 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.
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. Please contact OpenAI if you need to increase the storage limit.