Skip to main content
Module

x/openai/core.ts>APIPromise#then

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
method APIPromise.prototype.then
import { APIPromise } from "https://deno.land/x/openai@v4.19.0/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