Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/core.ts>APIPromise#then

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method APIPromise.prototype.then
import { APIPromise } from "https://deno.land/x/openai@v4.52.1/core.ts";

Type Parameters

optional
TResult1 = T
optional
TResult2 = never

Parameters

optional
onfulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null
optional
onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null