@Li, Lillian I had a discussion internally with the Product Owners.
.
Update (As of 18-Sept-2024):
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/json-mode?tabs=python
While JSON mode is still supported, when possible we recommend using structured outputs. Like JSON mode structured outputs generates valid JSON, but with the added benefit that you can constrain the model to use a specific JSON schema.
Setting to { "type": "json_schema", "json_schema": {...} }
enables Structured Outputs which guarantees the model will match your supplied JSON schema.
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.