Skip to main content
Module

x/openai/core.ts>APIPromise#then

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

Type Parameters

optional
TResult1 = WithRequestID<T>
optional
TResult2 = never

Parameters

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