Show Ollama models in Cookbook Serve

This commit is contained in:
pewdiepie-archdaemon
2026-06-02 07:14:59 +09:00
parent cd53ad01e8
commit ab0a480f30
4 changed files with 65 additions and 10 deletions
+4
View File
@@ -710,6 +710,10 @@ def setup_cookbook_routes() -> APIRouter:
entry["is_local_dir"] = True
if m.get("is_gguf"):
entry["is_gguf"] = True
if m.get("backend"):
entry["backend"] = m.get("backend")
if m.get("is_ollama"):
entry["is_ollama"] = True
models.append(entry)
except Exception as e:
logger.warning(f"Failed to parse cached models: {e}")