Skip to content

Commit

Permalink
Fix test_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
hauselin committed Apr 28, 2024
1 parent 8f8a898 commit a8a39b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/test_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test_connection <- function(url = "http://localhost:11434") {
return(resp)
}, error = function(e) {
message("Ollama local server not running or wrong server.\nDownload and launch Ollama app to run the server. Visit https://ollama.com or https://github.com/ollama/ollama")
return(e)
req$status_code <- 503
return(req)
})
}

0 comments on commit a8a39b3

Please sign in to comment.