From 3955a3de5d38d366640f26259d843330a3a3f6fd Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 20 Oct 2025 21:14:14 +0530 Subject: [PATCH] fix the wrong request body in json mode doc (#15729) --- docs/my-website/docs/completion/json_mode.md | 45 +++++++++----------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/docs/my-website/docs/completion/json_mode.md b/docs/my-website/docs/completion/json_mode.md index ec140ce5827..c86a1e59893 100644 --- a/docs/my-website/docs/completion/json_mode.md +++ b/docs/my-website/docs/completion/json_mode.md @@ -309,33 +309,30 @@ curl http://0.0.0.0:4000/v1/chat/completions \ {"role": "user", "content": "Alice and Bob are going to a science fair on Friday."}, ], "response_format": { - "type": "json_object", - "response_schema": { - "type": "json_schema", - "json_schema": { - "name": "math_reasoning", - "schema": { - "type": "object", - "properties": { - "steps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "explanation": { "type": "string" }, - "output": { "type": "string" } - }, - "required": ["explanation", "output"], - "additionalProperties": false - } + "type": "json_schema", + "json_schema": { + "name": "math_reasoning", + "schema": { + "type": "object", + "properties": { + "steps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "explanation": { "type": "string" }, + "output": { "type": "string" } }, - "final_answer": { "type": "string" } - }, - "required": ["steps", "final_answer"], - "additionalProperties": false + "required": ["explanation", "output"], + "additionalProperties": false + } }, - "strict": true + "final_answer": { "type": "string" } }, + "required": ["steps", "final_answer"], + "additionalProperties": false + }, + "strict": true } }, }'