serve: the model entry names the file behind the served name as root

A served name is chosen for clients and says nothing about which container is behind it.
Report what --model named as `root`, the field vLLM fills with the path it loaded; left out
when the server has none.
This commit is contained in:
baKon authored and StillDeadcode committed 2026-10-08 15:57:51 +02:00
1 parent 3a3345951f
commit d5b584a4c1
8 files changed
+22 -3

No files matched your search

+2
View File
@@ -329,6 +329,8 @@ struct ModelCard {
* its own length. 0 leaves the field out rather than reporting a length the server does not
* know. */
int64_t max_model_len = 0;
/* What the server loaded (ServerOptions::model_path), vLLM's `root`. Empty leaves it out. */
std::string root;
};
/* The list, for GET /v1/models. */
std::string models_body(const ModelCard& m);