test_connection | R Documentation |
Tests whether the Ollama server is running or not.
test_connection(url = "http://localhost:11434", logical = FALSE)
url |
The URL of the Ollama server. Default is http://localhost:11434 |
logical |
Logical. If TRUE, returns a boolean value. Default is FALSE. |
Boolean value or httr2 response object, where status_code is either 200 (success) or 503 (error).
test_connection(logical = TRUE)
test_connection("http://localhost:11434") # default url
test_connection("http://127.0.0.1:11434")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.