Skip to content

OpenAIErrorMessage

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

OpenAIErrorMessage

The struct sent if the request is malformed, or if OpenAI's server isn't functioning correctly.

public struct OpenAIErrorMessage: Error, Codable 

Inheritance

Codable, Error

Properties

message

The message associated with the error.

public let message: String

type

The type of error the object is.

public let type: String

param

The parameters of the error.

public let param: String?

code

The code associated with the error.

public let code: String?
Types
Global Functions
Clone this wiki locally