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: update dependencies in Cargo.lock and Cargo.toml, add fm-rs package and modify tauri-plugin-foundation-models dependencies

dev-miro265504a7aa7e40
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 82c6781af..c3fd9b89f 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1819,6 +1819,16 @@ dependencies = [
"spin",
]
+[[package]]
+name = "fm-rs"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76ba96ac90cf1955a708bc53f2a2730a042609fe0836c5989b1d4424f471e868"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
[[package]]
name = "fnv"
version = "1.0.7"
@@ -6505,15 +6515,15 @@ dependencies = [
name = "tauri-plugin-foundation-models"
version = "0.6.599"
dependencies = [
- "jan-utils",
+ "fm-rs",
"log",
- "nix",
"serde",
- "sysinfo",
+ "serde_json",
"tauri",
"tauri-plugin",
"thiserror 2.0.17",
"tokio",
+ "uuid",
]
[[package]]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 9bfad4126..3c234edec 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -54,7 +54,10 @@ test-tauri = [
"tauri/macos-private-api",
"tauri/tray-icon",
"tauri/test",
- "desktop",
+ "deep-link",
+ "hardware",
+ "mlx",
+ # Note: foundation-models excluded from tests - framework not available in CI
]
cli = ["dep:env_logger", "dep:dialoguer", "dep:indicatif", "dep:console"]
diff --git a/src-tauri/plugins/tauri-plugin-foundation-models/src/commands.rs b/src-tauri/plugins/tauri-plugin-foundation-models/src/commands.rs
index b59cd147d..cd9bfc5a7 100644
--- a/src-tauri/plugins/tauri-plugin-foundation-models/src/commands.rs
+++ b/src-tauri/plugins/tauri-plugin-foundation-models/src/commands.rs
@@ -19,6 +19,7 @@ struct ChatCompletionRequest {
#[allow(dead_code)]
top_p: Option<f64>,
max_tokens: Option<u32>,
+ #[allow(dead_code)]
stream: Option<bool>,
#[allow(dead_code)]
stop: Option<Vec<String>>,