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

x/openai/lib/AbstractChatCompletionRunner.ts>AbstractChatCompletionRunner

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

Properties

protected
_chatCompletions: ParsedChatCompletion<ParsedT>[]

Methods

protected
_createChatCompletion(
client: OpenAI,
options?: Core.RequestOptions,
): Promise<ParsedChatCompletion<ParsedT>>
protected
_runChatCompletion(
client: OpenAI,
options?: Core.RequestOptions,
): Promise<ChatCompletion>
protected
_runFunctions<FunctionsArgs extends BaseFunctionsArgs>()
protected
_runTools<FunctionsArgs extends BaseFunctionsArgs>(
client: OpenAI,
options?: RunnerOptions,
)
finalContent(): Promise<string | null>
finalFunctionCall(): Promise<ChatCompletionMessage.FunctionCall | undefined>
finalFunctionCallResult(): Promise<string | undefined>