Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: fix cargo test with new model_id property

Vanalitea9c3234e5d50
diff --git a/src-tauri/src/core/downloads/tests.rs b/src-tauri/src/core/downloads/tests.rs
index 8c3b14af5..59a127bf6 100644
--- a/src-tauri/src/core/downloads/tests.rs
+++ b/src-tauri/src/core/downloads/tests.rs
@@ -196,6 +196,7 @@ fn test_download_item_with_ssl_proxy() {
proxy: Some(proxy_config),
sha256: None,
size: None,
+ model_id: None,
};
assert!(download_item.proxy.is_some());
@@ -215,6 +216,7 @@ fn test_client_creation_with_ssl_settings() {
proxy: Some(proxy_config),
sha256: None,
size: None,
+ model_id: None,
};
let header_map = HeaderMap::new();
@@ -262,6 +264,7 @@ fn test_download_item_creation() {
proxy: None,
sha256: None,
size: None,
+ model_id: None,
};
assert_eq!(item.url, "https://example.com/file.tar.gz");