From 6e428cdd7a5d986f954452fb337821942afb0844 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Tue, 8 Jul 2025 04:02:45 +0100 Subject: [PATCH] [Doc] Syntax highlight request responses as JSON instead of bash (#20582) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- docs/serving/openai_compatible_server.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/serving/openai_compatible_server.md b/docs/serving/openai_compatible_server.md index 2d6e064a3fa8c..ffb58d9f60009 100644 --- a/docs/serving/openai_compatible_server.md +++ b/docs/serving/openai_compatible_server.md @@ -448,7 +448,7 @@ curl -v "http://127.0.0.1:8000/classify" \ ??? console "Response" - ```bash + ```json { "id": "classify-7c87cac407b749a6935d8c7ce2a8fba2", "object": "list", @@ -496,7 +496,7 @@ curl -v "http://127.0.0.1:8000/classify" \ ??? console "Response" - ```bash + ```json { "id": "classify-9bf17f2847b046c7b2d5495f4b4f9682", "object": "list", @@ -566,7 +566,7 @@ curl -X 'POST' \ ??? console "Response" - ```bash + ```json { "id": "score-request-id", "object": "list", @@ -608,7 +608,7 @@ The total number of pairs is `len(text_2)`. ??? console "Response" - ```bash + ```json { "id": "score-request-id", "object": "list", @@ -657,7 +657,7 @@ The total number of pairs is `len(text_2)`. ??? console "Response" - ```bash + ```json { "id": "score-request-id", "object": "list", @@ -736,7 +736,7 @@ Result documents will be sorted by relevance, and the `index` property can be us ??? console "Response" - ```bash + ```json { "id": "rerank-fae51b2b664d4ed38f5969b612edff77", "model": "BAAI/bge-reranker-base",