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

+1
View File
@@ -1157,6 +1157,7 @@ HttpResponse Server::handle_models(const HttpRequest& req) {
c.id = opt_.model_id;
c.created = started_at_;
c.max_model_len = opt_.max_ctx;
c.root = opt_.model_path;
metrics_.observe_http(200);
return HttpResponse::json_body(200, id.empty() ? models_body(c) : model_body(c));
}