An inventory application consumes a text-capable deployment through Chat Completions. The deployment supports both JSON mode and strict Structured Outputs. Each request explicitly asks for JSON containing an item string and a units integer.
Requests A and B use the respective response_format values below. Neither request supplies modalities. Consider completed responses without refusals or truncation.
| Request | response_format value |
|---|---|
| A | {"type":"json_object"} |
| B | {"type":"json_schema","json_schema":{"name":"inventory_record","strict":true,"schema":{"type":"object","properties":{"item":{"type":"string"},"units":{"type":"integer"}},"required":["item","units"],"additionalProperties":false}}} |
For each statement, select Yes if it is correct. Otherwise, select No.
| Statement | Yes | No |
|---|---|---|
| Request A's response_format enforces the requested field names and value types. The source says json_object ensures valid JSON. That format setting does not enforce the field names and types requested in the messages. | Correct | |
| Request B's response_format constrains the response to the supplied inventory_record schema. The source identifies json_schema as the format that enables schema-constrained Structured Outputs. Request B supplies that format with a strict schema, and the scenario excludes refusals and truncation. | Correct | |
| Omitting modalities from Request B requests audio output in addition to text. The source identifies text as the default output modality. Omitting modalities does not request an additional audio output. | Correct |
JSON mode provides a JSON syntax guarantee; the requested record structure is enforced by Structured Outputs with the supplied schema. The scenario fixes model support and excludes incomplete or refused responses. Output modality remains text when modalities is omitted.
- Microsoft Foundry REST Reference - Azure OpenAI - ChatMicrosoft Learn