fix ci
This commit is contained in:
parent
7a24dbe5e9
commit
2f40ed013b
1 changed files with 1 additions and 4 deletions
|
@ -3693,14 +3693,11 @@ int main(int argc, char ** argv) {
|
|||
};
|
||||
|
||||
const auto handle_models = [¶ms, &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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue