mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-13 06:37:02 +08:00
[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:
parent
93b9d9f499
commit
6e428cdd7a
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user