RequestInput

@Serializable
data class RequestInput(val customId: CustomId, val method: Method, val url: String, val body: ChatCompletionRequest? = null)

The per-line object of the batch input file.

Constructors

Link copied to clipboard
constructor(customId: CustomId, method: Method, url: String, body: ChatCompletionRequest? = null)

Properties

Link copied to clipboard
@SerialName(value = "body")
val body: ChatCompletionRequest? = null

The body of the request.

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. Must be unique for each request in a batch.

Link copied to clipboard
@SerialName(value = "method")
val method: Method

The HTTP method to be used for the request. Currently only Method.Post is supported.

Link copied to clipboard
@SerialName(value = "url")
val url: String

The OpenAI API relative URL to be used for the request. Currently only /v1/chat/completions is supported.