RequestOutput

@Serializable
data class RequestOutput(val id: BatchId, val customId: CustomId, val response: ResponseOutput? = null, val error: OpenAIErrorDetails? = null)

The per-line object of the batch input file.

Constructors

Link copied to clipboard
constructor(id: BatchId, customId: CustomId, response: ResponseOutput? = null, error: OpenAIErrorDetails? = null)

Properties

Link copied to clipboard
@SerialName(value = "custom_id")
val customId: CustomId

A developer-provided per-request id that will be used to match outputs to inputs.

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

For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.

Link copied to clipboard
@SerialName(value = "id")
val id: BatchId

The unique identifier of the request.

Link copied to clipboard
@SerialName(value = "response")
val response: ResponseOutput? = null

The response.