server: (router) expose child model info from router's /v1/models (#22683)

* server: (router) expose child model info from router's /v1/models

* update docs
This commit is contained in:
Xuan-Son Nguyen
2026-05-08 14:42:15 +02:00
committed by GitHub
parent 58e68df0f9
commit 9dcf835528
6 changed files with 79 additions and 26 deletions
+2 -1
View File
@@ -334,7 +334,8 @@ int main(int argc, char ** argv) {
// optionally, notify router server that this instance is ready
std::thread monitor_thread;
if (server_models::is_child_server()) {
monitor_thread = server_models::setup_child_server(shutdown_handler);
json model_info = routes.get_model_info();
monitor_thread = server_models::setup_child_server(shutdown_handler, model_info);
}
// this call blocks the main thread until queue_tasks.terminate() is called