Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix the wrong request body in json mode doc (#15729)

Sameer Kankute3955a3de5d38
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
}
},
}'