class

AI::OpenAI::OpenAIError

Inherits AI::Provider::AISDKError < Exception < Reference < Object

OpenAI-specific error.

Raised when the OpenAI API returns an error response.

Constructors

new(data : OpenAIErrorData)
Source

Class methods

instance?(error : Exception) : Bool

Checks if an error is an instance of OpenAIError.

Source

Instance methods

data

The error data from the API response.

Source