server: Expose build_info in router mode (#21835)

This commit is contained in:
Gaspard Petit
2026-04-13 05:14:42 -04:00
committed by GitHub
parent 9f5e1edb10
commit ce8fd4b1a6
2 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -926,7 +926,8 @@ void server_models_routes::init_routes() {
res_ok(res, {
// TODO: add support for this on web UI
{"role", "router"},
{"max_instances", 4}, // dummy value for testing
{"max_instances", params.models_max},
{"models_autoload", params.models_autoload},
// this is a dummy response to make sure webui doesn't break
{"model_alias", "llama-server"},
{"model_path", "none"},
@@ -935,6 +936,7 @@ void server_models_routes::init_routes() {
{"n_ctx", 0},
}},
{"webui_settings", webui_settings},
{"build_info", build_info},
});
return res;
}