CompletionCreateRequest.ResponseFormat

CompletionCreateRequest.ResponseFormat property

Gets or sets an object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106. Setting to { “type”: “json_object” } enables JSON mode, which guarantees the message the model generates is valid JSON.

public ResponseFormat ResponseFormat { get; set; }

See Also