Nothing
ch_ollama_check <- function() {
urls <- c(
"http://localhost:11434",
"http://127.0.0.1:11434"
)
check_urls <- urls %>%
map(~ request(.x) %>%
req_perform() %>%
try(silent = TRUE)) %>%
map_lgl(~ {
if (inherits(.x, "httr2_response")) {
if (.x$status_code == 200) {
TRUE
}
} else {
FALSE
}
})
any(check_urls)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.