From e0e2702d76aaff1e1978fb3e29aa2b26f8d14e8e 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:12:32 +0000 Subject: [PATCH] Update crates/tabby-download/src/lib.rs --- crates/tabby-download/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tabby-download/src/lib.rs b/crates/tabby-download/src/lib.rs index ce0ede1..33530ee 100644 --- a/crates/tabby-download/src/lib.rs +++ b/crates/tabby-download/src/lib.rs @@ -57,11 +57,11 @@ impl CacheInfo { } pub async fn download_model(model_id: &str, prefer_local_file: bool) -> Result<()> { - tracing::info!("Starting to download model: {}", model_id); if fs::metadata(model_id).is_ok() { // Local path, no need for downloading. return Ok(()); } + tracing::info!("Starting to download model: {}", model_id); let mut cache_info = CacheInfo::from(model_id).await;