Hi Debjit Kar
The version of the gpt-4o-mini model you're using (2024-07-18) doesn't support JSON output, as the error message indicates. The documentation says that JSON output is only available for API versions 2024-08-01-preview and later. Since this version isn't available on Azure Foundry yet, you can't get JSON output from your current model version. To get JSON output, you'll need to wait for a compatible version to be available or check for updates from Azure What'snew.
Kindly refer below link: Howto use JSON mode
Thank You.