Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Dec 23, 2024
1 parent 7a24dbe commit 2f40ed0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3693,14 +3693,11 @@ int main(int argc, char ** argv) {
};

const auto handle_models = [&params, &ctx_server, &res_ok](const httplib::Request &, httplib::Response & res) {
std::string model_name = ctx_server.params_base.model_alias.empty()
? ctx_server.params_base.model
: ctx_server.params_base.model_alias;
json models = {
{"object", "list"},
{"data", {
{
{"id", model_name},
{"id", params.model_alias.empty() ? params.model : params.model_alias},
{"object", "model"},
{"created", std::time(0)},
{"owned_by", "llamacpp"},
Expand Down

0 comments on commit 2f40ed0

Please sign in to comment.