diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 03ad9f4..a5c13bc 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -30,7 +30,7 @@ pub async fn get_models(config: IDefaultConfigs) -> Result, Error> { pub async fn get_ollama_version(config: IDefaultConfigs) -> Result { // In this command we use reqwest since ollama_rs does not have a method to get // the ollama server version - let mut server = config.server_url; + let mut server = config.server_url.clone(); if server.ends_with('/') { server.pop(); } diff --git a/src/Atoms.ts b/src/Atoms.ts index 4a7c6fe..e75cb44 100644 --- a/src/Atoms.ts +++ b/src/Atoms.ts @@ -32,7 +32,7 @@ const atomWithLocalStorage = (key: string, initialValue: unknown) => { // I've kept only the documented ones at default values const defaultConfigs: IDefaultConfigs = { request_timeout: 300, - server_url: "http://localhost:11434/", + server_url: "http://localhost:11434", system_prompt: "", default_options: { mirostat: 0,