ChatResponseFormat

@Serializable
data class ChatResponseFormat(val type: String, val jsonSchema: JsonSchema? = null)

An object specifying the format that the model must output.

Constructors

Link copied to clipboard
constructor(type: String, jsonSchema: JsonSchema? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "json_schema")
val jsonSchema: JsonSchema? = null

Optional JSON schema specification when type is "json_schema"

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

Response format type.