]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
common : enable `--offline` mode without curl support (#16137)
authorAdrien Gallouët <redacted>
Mon, 22 Sep 2025 12:13:51 +0000 (14:13 +0200)
committerGitHub <redacted>
Mon, 22 Sep 2025 12:13:51 +0000 (15:13 +0300)
commit37a23c17bdc9c99c9c6ad41168e4ced3724b72cd
tree8c8e6de25cc8f0eb682cefacd1a2ff53849152ae
parent138c87ce8bd558b2cc134ada7316a3dad8eb67ac
common : enable `--offline` mode without curl support (#16137)

* common : use the json parser

Signed-off-by: Adrien Gallouët <redacted>
* common : enable --offline mode without CURL support

This change refactors the download logic to properly support offline mode
even when the project is built without CURL.

Without this commit, using `--offline` would give the following error:

    error: built without CURL, cannot download model from the internet

even if all the files are already cached.

Signed-off-by: Adrien Gallouët <redacted>
---------

Signed-off-by: Adrien Gallouët <redacted>
common/arg.cpp