Archived
serve: /v1/models reports max_model_len, the context the server runs with
The model list carried only the id, so a client had no way to read the context the server was started with and guessed it from the model's name. Carry the field vLLM's model card does: the server's max_ctx (--max-model-len, else the container's trained length), on both /v1/models and /v1/models/:id, and leave it out when the length is unknown.
This commit is contained in:
1 parent
7fd2cd7fa6
commit
86128c2e75
6 files changed
+33
-5
No files matched your search
+1
-1
@@ -1132,7 +1132,7 @@ for a model that takes no images or video.
|
||||
| `POST /v1/chat/completions` | chat, with tools, reasoning and streaming |
|
||||
| `POST /v1/completions` | raw text completion |
|
||||
| `POST /v1/embeddings` | needs a model with an embedding head, else 501 |
|
||||
| `GET /v1/models`, `/v1/models/:id` | what is loaded |
|
||||
| `GET /v1/models`, `/v1/models/:id` | what is loaded, with `max_model_len` (the context it serves, as vLLM reports it) |
|
||||
| `GET /health`, `/ping`, `POST /ping` | liveness |
|
||||
| `GET /load` | current load |
|
||||
| `GET /version` | server version |
|
||||
|
||||
Reference in new issue
Block a user