class
AI::OpenAI::OpenAIError
- AI::OpenAI::OpenAIError
- AI::Provider::AISDKError
- Exception
- Reference
- Object
Overview
OpenAI-specific error.
Raised when the OpenAI API returns an error response.
Defined in:
ai/openai/openai_error.crConstructors
Class Method Summary
-
.instance?(error : Exception) : Bool
Checks if an error is an instance of OpenAIError.
Instance Method Summary
-
#data : OpenAIErrorData
The error data from the API response.