]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server: print actual model name in 'model not found" error (#19117)
authorMatthieu Coudron <redacted>
Mon, 2 Feb 2026 15:55:27 +0000 (16:55 +0100)
committerGitHub <redacted>
Mon, 2 Feb 2026 15:55:27 +0000 (16:55 +0100)
commita3fa03582240a4279ba019a3db2bb87311d5d485
tree8279fcb27ddd944674cda9f1d2f46df0ff016849
parent15818ac44c551d6d668c69bcfbf9a937c98f9e5a
server: print actual model name in 'model not found" error (#19117)

Experimenting with AI, my environment gets messy fast and it's not
always easy to know what model my software is trying to load. This helps
with troubleshooting.

before:

Error: {
  code = 400,
  message = "model not found",
  type = "invalid_request_error"
}

After:

Error: {
  code = 400,
  message = "model 'toto' not found",
  type = "invalid_request_error"
}
tools/server/server-models.cpp