server : fix missing model id in /model endpoint (#10957)
Some checks are pending
flake8 Lint / Lint (push) Waiting to run
Python Type-Check / pyright type-check (push) Waiting to run

* server : fix missing model id in /model endpoint

* fix ci
This commit is contained in:
Xuan Son Nguyen 2024-12-23 12:52:25 +01:00 committed by GitHub
parent 485dc01214
commit 14b699ecde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"},