From 9d66c098f85d8de60fefa68b2466aaf55d91acd0 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 10:13:53 +0000 Subject: [PATCH] Update crates/tabby-download/src/lib.rs --- crates/tabby-download/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tabby-download/src/lib.rs b/crates/tabby-download/src/lib.rs index 33530ee..9c0ebbc 100644 --- a/crates/tabby-download/src/lib.rs +++ b/crates/tabby-download/src/lib.rs @@ -56,6 +56,7 @@ impl CacheInfo { } } +// This function handles the downloading of models. It first checks if the model already exists locally. If not, it initiates the download. pub async fn download_model(model_id: &str, prefer_local_file: bool) -> Result<()> { if fs::metadata(model_id).is_ok() { // Local path, no need for downloading.