A chat completion delta generated by streamed model responses.

interface Delta {
    content?: null | string;
    function_call?: ChatCompletionChunk.Choice.Delta.FunctionCall;
    role?: "system" | "assistant" | "user" | "tool";
    tool_calls?: ToolCall[];
}

Properties

content?: null | string

The contents of the chunk message.

Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

role?: "system" | "assistant" | "user" | "tool"

The role of the author of this message.

tool_calls?: ToolCall[]

Generated using TypeDoc