class

OpenAI::BatchRequestOutputErrorVariant1

Inherits JSON::Serializable < Reference < Object

For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.

Constructors

new(code : String | Nil = nil, message : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code

A machine-readable error code.

Possible values:

  • batch_expired: The request could not be executed before the completion window ended.
  • batch_cancelled: The batch was cancelled before this request executed.
  • request_timeout: The underlying call to the model timed out.
Source
code=(code : String | Nil)

A machine-readable error code.

Possible values:

  • batch_expired: The request could not be executed before the completion window ended.
  • batch_cancelled: The batch was cancelled before this request executed.
  • request_timeout: The underlying call to the model timed out.
Source
message

A human-readable error message.

Source
message=(message : String | Nil)

A human-readable error message.

Source