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

x/openai/core.ts

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
import * as openai from "https://deno.land/x/openai@v4.38.5/core.ts";

Classes

c
AbstractPage
abstract
c
APIClient
abstract

A subclass of Promise providing additional helper methods for interacting with the SDK.

This subclass of Promise will resolve to an instantiated Page once the request completes.

Variables

Returns a multipart/form-data request if any part of the given request body contains a File / Blob value. Otherwise returns the request as is.

Read an environment variable.

Encodes a string to Base64 format.