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

x/openai/lib/ChatCompletionStream.ts>ChatCompletionStreamEvents

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

Type Parameters

optional
ParsedT = null

Properties

content: (contentDelta: string, contentSnapshot: string) => void
chunk: (chunk: ChatCompletionChunk, snapshot: ChatCompletionSnapshot) => void
content.delta: (props: ContentDeltaEvent) => void
content.done: (props: ContentDoneEvent<ParsedT>) => void
refusal.delta: (props: RefusalDeltaEvent) => void
refusal.done: (props: RefusalDoneEvent) => void
tool_calls.function.arguments.delta: (props: FunctionToolCallArgumentsDeltaEvent) => void
tool_calls.function.arguments.done: (props: FunctionToolCallArgumentsDoneEvent) => void
logprobs.content.delta: (props: LogProbsContentDeltaEvent) => void
logprobs.content.done: (props: LogProbsContentDoneEvent) => void
logprobs.refusal.delta: (props: LogProbsRefusalDeltaEvent) => void
logprobs.refusal.done: (props: LogProbsRefusalDoneEvent) => void