Skip to content

Commit

Permalink
Improves URL handling when fetching version
Browse files Browse the repository at this point in the history
  • Loading branch information
dezoito committed Apr 12, 2024
1 parent 725c9b5 commit 151f66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub async fn get_models(config: IDefaultConfigs) -> Result<Vec<String>, Error> {
pub async fn get_ollama_version(config: IDefaultConfigs) -> Result<String, Error> {
// 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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 151f66e

Please sign in to comment.