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: rename the local ai plugin
Nathanf0d967f0e4e8
diff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lockindex 6d45957104..b7d38b5dab 100644--- a/frontend/rust-lib/Cargo.lock+++ b/frontend/rust-lib/Cargo.lock@@ -198,7 +198,7 @@ dependencies = [[[package]]name = "appflowy-local-ai"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=6a12c1bad70fb9486c7aabf379d72d94cb73a2d5#6a12c1bad70fb9486c7aabf379d72d94cb73a2d5"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=4dad7f8744f6703f094b4c594aa4d65a487cc540#4dad7f8744f6703f094b4c594aa4d65a487cc540"dependencies = ["anyhow","appflowy-plugin",@@ -218,7 +218,7 @@ dependencies = [[[package]]name = "appflowy-plugin"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=6a12c1bad70fb9486c7aabf379d72d94cb73a2d5#6a12c1bad70fb9486c7aabf379d72d94cb73a2d5"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=4dad7f8744f6703f094b4c594aa4d65a487cc540#4dad7f8744f6703f094b4c594aa4d65a487cc540"dependencies = ["anyhow","cfg-if",diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.tomlindex c687278406..7ccaa020f4 100644--- a/frontend/rust-lib/Cargo.toml+++ b/frontend/rust-lib/Cargo.toml@@ -152,5 +152,5 @@ collab-importer = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFl# To update the commit ID, run:# scripts/tool/update_local_ai_rev.sh new_rev_id# ⚠️⚠️⚠️️-appflowy-local-ai = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "6a12c1bad70fb9486c7aabf379d72d94cb73a2d5" }-appflowy-plugin = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "6a12c1bad70fb9486c7aabf379d72d94cb73a2d5" }+appflowy-local-ai = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "4dad7f8744f6703f094b4c594aa4d65a487cc540" }+appflowy-plugin = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "4dad7f8744f6703f094b4c594aa4d65a487cc540" }diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/resource.rs b/frontend/rust-lib/flowy-ai/src/local_ai/resource.rsindex 489a67f69e..a162096f7d 100644--- a/frontend/rust-lib/flowy-ai/src/local_ai/resource.rs+++ b/frontend/rust-lib/flowy-ai/src/local_ai/resource.rs@@ -258,7 +258,7 @@ impl LocalAIResourceController {let mut config = OllamaPluginConfig::new(bin_path,- "ollama_ai_plugin".to_string(),+ "af_ollama_plugin".to_string(),llm_setting.chat_model_name.clone(),llm_setting.embedding_model_name.clone(),Some(llm_setting.ollama_server_url.clone()),diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/watch.rs b/frontend/rust-lib/flowy-ai/src/local_ai/watch.rsindex 895166d154..1d7be0daf9 100644--- a/frontend/rust-lib/flowy-ai/src/local_ai/watch.rs+++ b/frontend/rust-lib/flowy-ai/src/local_ai/watch.rs@@ -101,18 +101,18 @@ pub(crate) fn ollama_plugin_path() -> std::path::PathBuf {// Use LOCALAPPDATA for a user-specific installation path on Windows.let local_appdata =std::env::var("LOCALAPPDATA").unwrap_or_else(|_| "C:\\Program Files".to_string());- std::path::PathBuf::from(local_appdata).join("Programs\\appflowy_plugin\\ollama_ai_plugin.exe")+ std::path::PathBuf::from(local_appdata).join("Programs\\appflowy_plugin\\af_ollama_plugin.exe")}#[cfg(target_os = "macos")]{- let offline_app = "ollama_ai_plugin";+ let offline_app = "af_ollama_plugin";std::path::PathBuf::from(format!("/usr/local/bin/{}", offline_app))}#[cfg(target_os = "linux")]{- let offline_app = "ollama_ai_plugin";+ let offline_app = "af_ollama_plugin";std::path::PathBuf::from(format!("/usr/local/bin/{}", offline_app))}}@@ -124,7 +124,7 @@ pub(crate) fn ollama_plugin_command_available() -> bool {use std::os::windows::process::CommandExt;const CREATE_NO_WINDOW: u32 = 0x08000000;let output = Command::new("cmd")- .args(&["/C", "where", "ollama_ai_plugin"])+ .args(&["/C", "where", "af_ollama_plugin"]).creation_flags(CREATE_NO_WINDOW).output();if let Ok(output) = output {@@ -135,7 +135,7 @@ pub(crate) fn ollama_plugin_command_available() -> bool {// 2. Fallback: Check registry PATH for the executablelet path_dirs = get_windows_path_dirs();- let plugin_exe = "ollama_ai_plugin.exe"; // Adjust name if needed+ let plugin_exe = "af_ollama_plugin.exe"; // Adjust name if neededpath_dirs.iter().any(|dir| {let full_path = std::path::Path::new(dir).join(plugin_exe);@@ -147,7 +147,7 @@ pub(crate) fn ollama_plugin_command_available() -> bool {false} else {let output = Command::new("command")- .args(["-v", "ollama_ai_plugin"])+ .args(["-v", "af_ollama_plugin"]).output();match output {Ok(o) => !o.stdout.is_empty(),