Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.52.1/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