Skip to content

September 2024

Photo by Pixabay: https://www.pexels.com/photo/brown-wooden-mallet-near-brown-chicken-egg-40721/

Force Azure OpenAI to response with JSON data

Aug 7, 2024 Microsoft announced, that they are now supporting JSON mode Azure OpenAI. This mode forces OpenAI to response only with JSON data. You could kind of do the same thing earlier, but the OpenAI response didn’t always contain only valid JSON. There could be some additional text before and after the JSON data. However now you can force the OpenAI to stay strictly in JSON format.

Supported