Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: remove test
Nathan9230981e5494
diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/request.rs b/frontend/rust-lib/flowy-ai/src/local_ai/request.rsindex dd94b43041..6d4bd3289d 100644--- a/frontend/rust-lib/flowy-ai/src/local_ai/request.rs+++ b/frontend/rust-lib/flowy-ai/src/local_ai/request.rs@@ -116,46 +116,3 @@ async fn make_request(}Ok(response)}--#[cfg(test)]-mod test {- use super::*;- use std::env::temp_dir;- #[tokio::test]- async fn retrieve_gpt4all_model_test() {- for url in [- // "https://gpt4all.io/models/gguf/all-MiniLM-L6-v2-f16.gguf",- "https://huggingface.co/second-state/All-MiniLM-L6-v2-Embedding-GGUF/resolve/main/all-MiniLM-L6-v2-Q3_K_L.gguf?download=true",- // "https://huggingface.co/MaziyarPanahi/Mistral-7B-Instruct-v0.3-GGUF/resolve/main/Mistral-7B-Instruct-v0.3.Q4_K_M.gguf?download=true",- ] {- let temp_dir = temp_dir().join("download_llm");- if !temp_dir.exists() {- fs::create_dir(&temp_dir).await.unwrap();- }- let file_name = "llm_model.gguf";- let cancel_token = CancellationToken::new();- let token = cancel_token.clone();- tokio::spawn(async move {- tokio::time::sleep(tokio::time::Duration::from_secs(120)).await;- token.cancel();- });-- let download_file = download_model(- url,- &temp_dir,- file_name,- Some(Arc::new(|a, b| {- println!("{}/{}", a, b);- })),- Some(cancel_token),- ).await.unwrap();-- let file_path = temp_dir.join(file_name);- assert_eq!(download_file, file_path);-- println!("File path: {:?}", file_path);- assert!(file_path.exists());- std::fs::remove_file(file_path).unwrap();- }- }-}