Skip to main content
Module

x/openai/resources/mod.ts>Models

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace Models
import { Models } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";
class Models
extends APIResource
import { Models } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";

Methods

del(model: string, options?: Core.RequestOptions): Core.APIPromise<ModelDeleted>

Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.

list(options?: Core.RequestOptions): Core.PagePromise<ModelsPage, Model>

Lists the currently available models, and provides basic information about each one such as the owner and availability.

retrieve(model: string, options?: Core.RequestOptions): Core.APIPromise<Model>

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.