OpenAI::ResponseErrorEvent
Inherits JSON::Serializable < Reference < Object
Emitted when an error occurs.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseErrorEventType = ResponseErrorEventType::Error, code : ResponseErrorEventCode = nil, message : String = "", param : ResponseErrorEventParam = nil, sequence_number : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
code
Sourcecode=(code : ResponseErrorEventCode)
Sourceparam
Sourceparam=(param : ResponseErrorEventParam)
Source