Skip to content

Commit

Permalink
server : fix missing model id in /model endpoint (ggerganov#10957)
Browse files Browse the repository at this point in the history
* server : fix missing model id in /model endpoint

* fix ci
  • Loading branch information
ngxson authored Dec 23, 2024
1 parent 485dc01 commit 14b699e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 14b699e

Please sign in to comment.