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
Go to Latest
class ChatCompletionRunner
extends AbstractChatCompletionRunner<ChatCompletionRunnerEvents>
Re-export
import { ChatCompletionRunner } from "https://deno.land/x/openai@v4.28.5/resources/beta/chat/completions.ts";

Methods

_addMessage(message: ChatCompletionMessageParam)

Static Methods

deprecated
runFunctions(
completions: Completions,
params: ChatCompletionFunctionRunnerParams<any[]>,
options?: RunnerOptions,
): ChatCompletionRunner
runTools(
completions: Completions,
params: ChatCompletionToolRunnerParams<any[]>,
options?: RunnerOptions,
): ChatCompletionRunner