Skip to content

Scrypted Documentation / ChatCompletionChunk / Choice / Delta

Interface: Delta

A chat completion delta generated by streamed model responses.

Properties

content?

optional content: null | string

The contents of the chunk message.


function_call?

optional function_call: FunctionCall

Deprecated

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


refusal?

optional refusal: null | string

The refusal message generated by the model.


role?

optional role: "user" | "system" | "assistant" | "developer" | "tool"

The role of the author of this message.


tool_calls?

optional tool_calls: ToolCall[]