class

OpenAI::ResponseErrorEvent

Inherits JSON::Serializable < Reference < Object

Emitted when an error occurs.

Constructors

new(type_value : ResponseErrorEventType = ResponseErrorEventType::Error, code : ResponseErrorEventCode = nil, message : String = "", param : ResponseErrorEventParam = nil, sequence_number : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code
Source
code=(code : ResponseErrorEventCode)
Source
message

The error message.

Source
message=(message : String)

The error message.

Source
param
Source
param=(param : ResponseErrorEventParam)
Source
sequence_number

The sequence number of this event.

Source
sequence_number=(sequence_number : Int64)

The sequence number of this event.

Source
type_value

The type of the event. Always error.

Source
type_value=(type_value : ResponseErrorEventType)

The type of the event. Always error.

Source