ResponseFormat

@Serializable
class ResponseFormat

Format the model must use for its response.

Use jsonObject to request a response guaranteed to be a valid JSON object; use text for the default free-form output.

Example:

val params = chatCompletionParams {
responseFormat = ResponseFormat.jsonObject
}

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Wire value sent to the API; either text or json_object.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String