ChatCompletionsResponseFormatJSON interface

A response format for Chat Completions that restricts responses to emitting valid JSON objects. Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON via a system or user message.

Extends

Properties

type

Response format type: always 'json_object' for this object.

Property Details

type

Response format type: always 'json_object' for this object.

type: "json_object"

Property Value

"json_object"