class

OpenAI::ResponseTextDeltaEvent

Inherits JSON::Serializable < Reference < Object

Emitted when there is an additional text delta.

Constructors

new(type_value : ResponseTextDeltaEventType = ResponseTextDeltaEventType::ResponseOutputTextDelta, item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, delta : String = "", sequence_number : Int64 = 0, logprobs : Array(ResponseLogProb) = [] of ResponseLogProb)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content_index

The index of the content part that the text delta was added to.

Source
content_index=(content_index : Int64)

The index of the content part that the text delta was added to.

Source
delta

The text delta that was added.

Source
delta=(delta : String)

The text delta that was added.

Source
item_id

The ID of the output item that the text delta was added to.

Source
item_id=(item_id : String)

The ID of the output item that the text delta was added to.

Source
logprobs

The log probabilities of the tokens in the delta.

Source
logprobs=(logprobs : Array(ResponseLogProb))

The log probabilities of the tokens in the delta.

Source
output_index

The index of the output item that the text delta was added to.

Source
output_index=(output_index : Int64)

The index of the output item that the text delta was added to.

Source
sequence_number

The sequence number for this event.

Source
sequence_number=(sequence_number : Int64)

The sequence number for this event.

Source
type_value

The type of the event. Always response.output_text.delta.

Source
type_value=(type_value : ResponseTextDeltaEventType)

The type of the event. Always response.output_text.delta.

Source