Skip to main content
Module

x/openai/lib/AbstractChatCompletionRunner.ts>AbstractChatCompletionRunner#finalChatCompletion

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
method AbstractChatCompletionRunner.prototype.finalChatCompletion
import { AbstractChatCompletionRunner } from "https://deno.land/x/openai@v4.19.1/lib/AbstractChatCompletionRunner.ts";

Returns

a promise that resolves with the final ChatCompletion, or rejects if an error occurred or the stream ended prematurely without producing a ChatCompletion.