Self-hosted AI workspace.
Python
fix(cookbook): diagnose 'no GGUF file' serve failures clearly (#811) (#866)
Tatlatatac3123d22d44
diff --git a/routes/cookbook_routes.py b/routes/cookbook_routes.pyindex 85b932cc5..62b7c2038 100644--- a/routes/cookbook_routes.py+++ b/routes/cookbook_routes.py@@ -163,6 +163,11 @@ def setup_cookbook_routes() -> APIRouter:"llama.cpp / llama-cpp-python dependencies are missing.",[{"label": "install llama.cpp dependencies or llama-cpp-python[server]", "op": "dependency", "package": "llama-cpp-python[server]"}],),+ (+ r"No GGUF found on this host|no \.gguf file|No GGUF file found",+ "No GGUF file found for this model on this host. The llama.cpp backend needs a .gguf file.",+ [{"label": "download a GGUF build of this model (repo name usually ends in -GGUF, file like Q4_K_M.gguf)", "op": "manual"}],+ ),(r"No module named 'torch'|No module named torch|No module named 'diffusers'|No module named diffusers","Diffusion serving requires PyTorch and diffusers.",