Does OpenAI Batch Processing support Structured output?

Oleg Demidenko 20 Reputation points
2024-10-10T18:11:49.4666667+00:00

Does Azure OpenAI GlobalBatch GPT-4o deployment supports "Structured output"? With response_format="json_schema" (and valid schema) it returns empty output (Sweden Central Azure regione).
Without structured output - it works fine, and GlobalStandard 4o model (same version: 2024-08-06) produces the structured output as expected.

I tried it with a request that worked fine with OpenAI Batch Structured output near the end of this conversation, and on Azure it returns an empty file. So, does it mean that it is not supported on Azure, yet? Or is it some bug of me/Azure?

Request that worked with OpenAI and returns an empty file on Azure:

{"custom_id": "request-1", "method": "POST", "url": "/chat/completions", "body": {"model": "gpt-4o-batch", "messages": [{"role": "system", "content": "You are a helpful math tutor. Guide the user through the solution step by step."}, {"role": "user", "content": "how can I solve 8x + 7 = -23"}], "max_tokens": 4096, "response_format": {"type": "json_schema", "json_schema": {"name": "math_response", "schema": {"type": "object", "properties": {"steps": {"type": "array", "items": {"type": "object", "properties": {"explanation": {"type": "string"}, "output": {"type": "string"}}, "required": ["explanation", "output"], "additionalProperties": false}}, "final_answer": {"type": "string"}}, "required": ["steps", "final_answer"], "additionalProperties": false}, "strict": true}}}}

Same request without the response_format or with 'json_object' format works fine.

I am using a deployment in the Sweden Central region, if it matters.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MMA 5 Reputation points Microsoft Employee
    2024-10-23T11:01:00.7533333+00:00

    Structured outputs is now available for global batch deployments as long as you use 2024-08-01-preview

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.