OpenAIError

@Serializable
data class OpenAIError(val detail: OpenAIErrorDetails? = null)

Represents an error response from the OpenAI API.

Parameters

detail

information about the error that occurred.

Constructors

Link copied to clipboard
constructor(detail: OpenAIErrorDetails? = null)

Properties

Link copied to clipboard
@SerialName(value = "error")
val detail: OpenAIErrorDetails? = null