-
Select Topic AreaQuestion BodyHi Team, I want to use structure output for gpt4o and I think 2024-08-06 support that. My question is how to use it?
Does not work with error openai.BadRequestError: Error code: 400 - {'error': {'code': 'BadRequest', 'message': 'response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later'}} Also tried
Also does not work with 404 error |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi - try api-version=2024-08-01-preview. This should work |
Beta Was this translation helpful? Give feedback.
-
Hey @zch-cc did you get it working? If not I can open a bug ticket for you! Also I'd love to hear more about what you're using this for if you'd be willing to share :) |
Beta Was this translation helpful? Give feedback.
Hi Kate, I got work with
api_version="2024-10-21" with AzureOpenAI
and base_url = "https://models.inference.ai.azure.com/openai"
I am using sturcture output but the old api version does not support this