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
Latest
interface AbstractChatCompletionRunnerEvents
implements BaseEvents
import { type AbstractChatCompletionRunnerEvents } from "https://deno.land/x/openai@v4.69.0/lib/AbstractChatCompletionRunner.ts";

Properties

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
totalUsage: (usage: CompletionUsage) => void