Partilhar via


ChatCompletionsOptions.ResponseFormat Property

Definition

The format that the model must output. Use this to enable JSON mode instead of the default text mode. 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. Please note ChatCompletionsResponseFormat is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ChatCompletionsResponseFormatJSON and ChatCompletionsResponseFormatText.

public Azure.AI.Inference.ChatCompletionsResponseFormat ResponseFormat { get; set; }
member this.ResponseFormat : Azure.AI.Inference.ChatCompletionsResponseFormat with get, set
Public Property ResponseFormat As ChatCompletionsResponseFormat

Property Value

Applies to