ResponseOutput

@Serializable
data class ResponseOutput(val statusCode: Int, val requestId: RequestId, val body: JsonObject)

The response output of the API request.

Constructors

Link copied to clipboard
constructor(statusCode: Int, requestId: RequestId, body: JsonObject)

Properties

Link copied to clipboard
@SerialName(value = "body")
val body: JsonObject

The JSON body of the response

Link copied to clipboard
@SerialName(value = "request_id")
val requestId: RequestId

An unique identifier for the OpenAI API request. Please include this request ID when contacting support.

Link copied to clipboard
@SerialName(value = "status_code")
val statusCode: Int

The HTTP status code of the response