]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Handle missing model in CLI parameters for llama-run (#11399)
authorMichael Engel <redacted>
Tue, 28 Jan 2025 08:32:40 +0000 (09:32 +0100)
committerGitHub <redacted>
Tue, 28 Jan 2025 08:32:40 +0000 (08:32 +0000)
commit2b8525d5c89b124c4578a2621cbeb64354ff3d9c
tree13ff2326fbb26a3e468ed01fe0d80fbf65302bef
parenta4417ddda98fd0558fb4d802253e68a933704b59
Handle missing model in CLI parameters for llama-run (#11399)

The HTTP client in llama-run only prints an error in case the download of
a resource failed. If the model name in the CLI parameter list is missing,
this causes the application to crash.
In order to prevent this, a check for the required model parameter has been
added and errors for resource downloads get propagated to the caller.

Signed-off-by: Michael Engel <redacted>
examples/run/run.cpp