Skip to content

Commit ffdcf7b

Browse files
authored
Merge pull request #20 from imabedalghafer/patch-2
Updating both JSON-mode and Structured output with unsupported scenarios
2 parents e70a57e + e59cf98 commit ffdcf7b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

articles/ai-services/openai/how-to/json-mode.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ JSON mode allows you to set the models response format to return a valid JSON ob
2020
> [!NOTE]
2121
> While JSON mode is still supported, when possible we recommend using [structured outputs](./structured-outputs.md). Like JSON mode structured outputs generates valid JSON, but with the added benefit that you can constrain the model to use a specific JSON schema.
2222
23+
>[!NOTE]
24+
> Currently Structured outputs is not supported on [bring your own data](../concepts/use-your-data.md) scenario.
25+
2326
## JSON mode support
2427

2528
JSON mode is only currently supported with the following models:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ 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.
21+
1922
## Supported models
2023

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

0 commit comments

Comments
 (0)