From 236ef036ec94d68b7f4508f05bdb589a7898e1f5 Mon Sep 17 00:00:00 2001 From: milan Date: Thu, 30 Jul 2026 21:15:55 +0200 Subject: [PATCH] add model to MistralConfig --- Cargo.lock | 3 ++- cli/Cargo.toml | 1 + common/Cargo.toml | 2 +- common/src/config.rs | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0b688e8..71f8e3e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2005,6 +2005,7 @@ dependencies = [ "thiserror 2.0.19", "tokio", "tokio-util", + "url", ] [[package]] @@ -2037,7 +2038,7 @@ dependencies = [ [[package]] name = "own_assist_common" -version = "0.4.3" +version = "0.4.4" dependencies = [ "log", "ollama-rs", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index cd9bc1c..191cdc1 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -21,6 +21,7 @@ base64 = "0.23.0" cpal = "0.18.1" rodio = "0.22.2" tokio-util = { version = "0.7.18", optional = true } +url = "2.5.8" [features] default = ["built-in-mcp-collection"] diff --git a/common/Cargo.toml b/common/Cargo.toml index d062cfe..31500d9 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "own_assist_common" -version = "0.4.3" +version = "0.4.4" edition = "2024" license = "GPL-3.0" diff --git a/common/src/config.rs b/common/src/config.rs index a2cff7c..cd38310 100644 --- a/common/src/config.rs +++ b/common/src/config.rs @@ -87,6 +87,7 @@ pub struct OllamaModelConfig { pub struct MistralConfig { #[serde(rename = "api-key")] pub api_key: String, + pub model: String, #[serde(rename = "system-prompt")] pub system_prompt: Option, }