import { OpenAI } from "https://deno.land/x/openai@1.4.3/src/openai.ts";
Methods
Immediately cancel a fine-tune job.
https://platform.openai.com/docs/api-reference/fine-tunes/cancel
Creates a completion for the chat message
Creates a completion stream for the chat message
Creates a completion for the provided prompt and parameters
https://platform.openai.com/docs/api-reference/completions/create
Creates a completion stream for the provided prompt and parameters
https://platform.openai.com/docs/api-reference/completions/create
Creates a new edit for the provided input, instruction, and parameters.
Creates an embedding vector representing the input text.
https://platform.openai.com/docs/api-reference/embeddings/create
Creates a job that fine-tunes a specified model from a given dataset.
https://platform.openai.com/docs/api-reference/fine-tunes/create
Creates an image given a prompt.
https://platform.openai.com/docs/api-reference/images/create
Creates an edited or extended image given an original image and a prompt.
https://platform.openai.com/docs/api-reference/images/create-edit
Creates a variation of a given image.
https://platform.openai.com/docs/api-reference/images/create-variation
Classifies if text violates OpenAI's Content Policy
https://platform.openai.com/docs/api-reference/moderations/create
Transcribes audio into the input language.
Translates audio into into English.
Delete a file.
Delete a fine-tuned model. You must have the Owner role in your organization.
https://platform.openai.com/docs/api-reference/fine-tunes/delete-model
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
https://platform.openai.com/docs/api-reference/models/retrieve
Returns a list of files that belong to the user's organization.
Get fine-grained status updates for a fine-tune job.
https://platform.openai.com/docs/api-reference/fine-tunes/events
List your organization's fine-tuning jobs
https://platform.openai.com/docs/api-reference/fine-tunes/list
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Returns information about a specific file.
https://platform.openai.com/docs/api-reference/files/retrieve
Returns the contents of the specified file
https://platform.openai.com/docs/api-reference/files/retrieve-content
Gets info about the fine-tune job.
https://platform.openai.com/docs/api-reference/fine-tunes/retrieve
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 us if you need to increase the storage limit.