From a8a39b3358c5bb2879219a643793231bbc0c18ba Mon Sep 17 00:00:00 2001 From: Hause Lin Date: Sun, 28 Apr 2024 19:37:03 -0400 Subject: [PATCH] Fix test_connection --- R/test_connection.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/test_connection.R b/R/test_connection.R index 31200e6..93bc50e 100644 --- a/R/test_connection.R +++ b/R/test_connection.R @@ -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) }) }