OpenAIErrorDetails

@Serializable
data class OpenAIErrorDetails(val code: String? = null, val message: String? = null, val param: String? = null, val type: String? = null, val line: Int? = null)

Represents an error object returned by the OpenAI API.

Constructors

Link copied to clipboard
constructor(code: String? = null, message: String? = null, param: String? = null, type: String? = null, line: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "code")
val code: String? = null

An error code identifying the error type.

Link copied to clipboard
@SerialName(value = "line")
val line: Int? = null

The line number of the input file where the error occurred, if applicable.

Link copied to clipboard
@SerialName(value = "message")
val message: String? = null

A human-readable message providing more details about the error.

Link copied to clipboard
@SerialName(value = "param")
val param: String? = null

The name of the parameter that caused the error, if applicable.

Link copied to clipboard
@SerialName(value = "type")
val type: String? = null

The type of error that occurred.