mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 11:40:17 +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"},
|
{"object", "list"},
|
||||||
{"data", {
|
{"data", {
|
||||||
{
|
{
|
||||||
{"id", params.model_alias},
|
{"id", params.model_alias.empty() ? params.model : params.model_alias},
|
||||||
{"object", "model"},
|
{"object", "model"},
|
||||||
{"created", std::time(0)},
|
{"created", std::time(0)},
|
||||||
{"owned_by", "llamacpp"},
|
{"owned_by", "llamacpp"},
|
||||||
|
Loading…
Reference in New Issue
Block a user