Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai_mini/lib/openai.ts>OpenAI

A minimal wrapper for the OpenAI API
Go to Latest
class OpenAI
import { OpenAI } from "https://deno.land/x/openai_mini@0.3.0/lib/openai.ts";

Constructors

new
OpenAI(apiKey: string)

Properties

private
apiKey: string

Methods

createEdit(request: EditRequest): Promise<EditResponse>
createFineTune(fileId: string, model: AvailableModels): Promise<FineTuneResponse>
getFineTune(fineTuneId): Promise<FineTuneResponse>
getModels(): Promise<Models>
uploadFile(fileData: Uint8Array, fileName: string): Promise<FileResponse>