Skip to content

Commit 6e428cd

Browse files
authored
[Doc] Syntax highlight request responses as JSON instead of bash (#20582)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
1 parent 93b9d9f commit 6e428cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/serving/openai_compatible_server.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ curl -v "http://127.0.0.1:8000/classify" \
448448

449449
??? console "Response"
450450

451-
```bash
451+
```json
452452
{
453453
"id": "classify-7c87cac407b749a6935d8c7ce2a8fba2",
454454
"object": "list",
@@ -496,7 +496,7 @@ curl -v "http://127.0.0.1:8000/classify" \
496496

497497
??? console "Response"
498498

499-
```bash
499+
```json
500500
{
501501
"id": "classify-9bf17f2847b046c7b2d5495f4b4f9682",
502502
"object": "list",
@@ -566,7 +566,7 @@ curl -X 'POST' \
566566

567567
??? console "Response"
568568

569-
```bash
569+
```json
570570
{
571571
"id": "score-request-id",
572572
"object": "list",
@@ -608,7 +608,7 @@ The total number of pairs is `len(text_2)`.
608608

609609
??? console "Response"
610610

611-
```bash
611+
```json
612612
{
613613
"id": "score-request-id",
614614
"object": "list",
@@ -657,7 +657,7 @@ The total number of pairs is `len(text_2)`.
657657

658658
??? console "Response"
659659

660-
```bash
660+
```json
661661
{
662662
"id": "score-request-id",
663663
"object": "list",
@@ -736,7 +736,7 @@ Result documents will be sorted by relevance, and the `index` property can be us
736736

737737
??? console "Response"
738738

739-
```bash
739+
```json
740740
{
741741
"id": "rerank-fae51b2b664d4ed38f5969b612edff77",
742742
"model": "BAAI/bge-reranker-base",

0 commit comments

Comments
 (0)