class

OpenAI::RunObjectLastError

Inherits JSON::Serializable < Reference < Object

The last error associated with this run. Will be null if there are no errors.

Constructors

new(code : RunObjectLastErrorCode = RunObjectLastErrorCode::ServerError, message : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code

One of server_error, rate_limit_exceeded, or invalid_prompt.

Source
code=(code : RunObjectLastErrorCode)

One of server_error, rate_limit_exceeded, or invalid_prompt.

Source
message

A human-readable description of the error.

Source
message=(message : String)

A human-readable description of the error.

Source