[Doc] Syntax highlight request responses as JSON instead of bash (#20582)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor 2025-07-08 04:02:45 +01:00 committed by GitHub
parent 93b9d9f499
commit 6e428cdd7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",