Skip to content

Commit 9367926

Browse files
Merge pull request #812 from mrbullwinkle/mrb_10_14_2024_batch_structured_outputs
[Azure OpenAI] Global Batch + Structured Outputs known issue.
2 parents 5a0b5a5 + e126dd0 commit 9367926

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

articles/ai-services/openai/how-to/batch.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: azure-ai-openai
77
ms.custom:
88
ms.topic: how-to
9-
ms.date: 10/11/2024
9+
ms.date: 10/14/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -76,6 +76,13 @@ The following aren't currently supported:
7676
- Integration with the Assistants API.
7777
- Integration with Azure OpenAI On Your Data feature.
7878

79+
> [!NOTE]
80+
> There is a known issue with Azure OpenAI global batch and [structured outputs](./structured-outputs.md). Currently, lines in your jsonl file with structured output requests will fail with the following error message written to the error file:
81+
>
82+
> ***response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later***.
83+
>
84+
>This error will occur even when your code targets the latest preview APIs which support structured outputs. Once the issue is resolved, this page will be updated.
85+
7986
### Global batch deployment
8087

8188
In the Studio UI the deployment type will appear as `Global-Batch`.

articles/ai-services/openai/how-to/structured-outputs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ recommendations: false
1616

1717
Structured outputs make a model follow a [JSON Schema](https://json-schema.org/overview/what-is-jsonschema) definition that you provide as part of your inference API call. This is in contrast to the older [JSON mode](./json-mode.md) feature, which guaranteed valid JSON would be generated, but was unable to ensure strict adherence to the supplied schema. Structured outputs is recommended for function calling, extracting structured data, and building complex multi-step workflows.
1818

19-
>[!NOTE]
20-
> Currently Structured outputs is not supported on [bring your own data](../concepts/use-your-data.md) scenario.
19+
> [!NOTE]
20+
> * Currently structured outputs is not supported on [bring your own data](../concepts/use-your-data.md) scenario.
21+
>
22+
> * There is a known issue blocking structured outputs support for [global batch](batch.md).
2123
2224
## Supported models
2325

2426
Currently only `gpt-4o` version: `2024-08-06` supports structured outputs.
2527

2628
## API support
2729

28-
Support for structured outputs was first added in API version `2024-08-01-preview`.
30+
Support for structured outputs was first added in API version `2024-08-01-preview`.
2931

3032
## Getting started
3133

0 commit comments

Comments
 (0)