ChatCompletionsResponseFormat type
Represents 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.
type ChatCompletionsResponseFormat =
| ChatCompletionsResponseFormatParent
| ChatCompletionsResponseFormatText
| ChatCompletionsResponseFormatJsonObject
| ChatCompletionsResponseFormatJsonSchema
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for JavaScript