mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
server : fix missing model id in /model endpoint (#10957)
* server : fix missing model id in /model endpoint * fix ci
This commit is contained in:
parent
485dc01214
commit
14b699ecde
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user