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

x/openai/lib/AbstractChatCompletionRunner.ts>AbstractChatCompletionRunnerEvents

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

Properties

connect: () => void
functionCall: (functionCall: ChatCompletionMessage.FunctionCall) => void
message: (message: ChatCompletionMessageParam) => void
chatCompletion: (completion: ChatCompletion) => void
finalContent: (contentSnapshot: string) => void
finalMessage: (message: ChatCompletionMessageParam) => void
finalChatCompletion: (completion: ChatCompletion) => void
finalFunctionCall: (functionCall: ChatCompletionMessage.FunctionCall) => void
functionCallResult: (content: string) => void
finalFunctionCallResult: (content: string) => void
error: (error: OpenAIError) => void
abort: (error: APIUserAbortError) => void
end: () => void
totalUsage: (usage: CompletionUsage) => void