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

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

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

Returns

Promise<ChatCompletionMessage.FunctionCall | undefined>

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