Response Format
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
}Content copied to clipboard