OpenAI::ResponseTextDeltaEvent
Inherits JSON::Serializable < Reference < Object
Emitted when there is an additional text delta.
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content_index=(content_index : Int64)
The index of the content part that the text delta was added to.
The log probabilities of the tokens in the delta.
output_index=(output_index : Int64)
The index of the output item that the text delta was added to.
type_value=(type_value : ResponseTextDeltaEventType)
The type of the event. Always response.output_text.delta.