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

x/openai/resources/beta/chat/completions.ts>ChatCompletionRunner

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
class ChatCompletionRunner
extends AbstractChatCompletionRunner<ChatCompletionRunnerEvents, ParsedT>
Re-export
import { ChatCompletionRunner } from "https://deno.land/x/openai@v4.69.0/resources/beta/chat/completions.ts";

Type Parameters

optional
ParsedT = null

Methods

_addMessage(
this: ChatCompletionRunner<ParsedT>,
message: ChatCompletionMessageParam,
emit?: boolean,
)

Static Methods

deprecated
runFunctions(
client: OpenAI,
params: ChatCompletionFunctionRunnerParams<any[]>,
options?: RunnerOptions,
): ChatCompletionRunner<null>
runTools<ParsedT>(
client: OpenAI,
params: ChatCompletionToolRunnerParams<any[]>,
options?: RunnerOptions,
): ChatCompletionRunner<ParsedT>