OpenAIErrorDetails

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

Represents an error object returned by the OpenAI API.

Parameters

code

error code returned by the OpenAI API.

message

human-readable error message describing the error that occurred.

param

the parameter that caused the error, if applicable.

type

the type of error that occurred.

Constructors

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

Properties

Link copied to clipboard
val code: String? = null
Link copied to clipboard
val message: String? = null
Link copied to clipboard
val param: String? = null
Link copied to clipboard
val type: String? = null