struct AI::OpenAI::OpenAIErrorData

Overview

OpenAI error data wrapper.

Represents the top-level error response from OpenAI API.

Included Modules

Defined in:

ai/openai/openai_error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(error : OpenAIErrorInfo) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def error : OpenAIErrorInfo #

The error information.


[View source]