From 14b699ecde8f1e9e251ebff9eca39ebc5603b83b Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Mon, 23 Dec 2024 12:52:25 +0100 Subject: [PATCH] server : fix missing model id in /model endpoint (#10957) * server : fix missing model id in /model endpoint * fix ci --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index c571ed3c104d4..476a9225f75b7 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -3701,7 +3701,7 @@ int main(int argc, char ** argv) { {"object", "list"}, {"data", { { - {"id", params.model_alias}, + {"id", params.model_alias.empty() ? params.model : params.model_alias}, {"object", "model"}, {"created", std::time(0)}, {"owned_by", "llamacpp"},