Update crates/tabby-download/src/lib.rs

sweep/improve-logging
sweep-ai[bot] 2023-07-27 10:13:53 +00:00 committed by GitHub
parent e0e2702d76
commit 9d66c098f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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.