diff --git a/examples/server/server.cpp b/examples/server/server.cpp index c571ed3c1..476a9225f 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"},