From 839dcc69e860e55f5ce3dd09a33f074a1c2e882b Mon Sep 17 00:00:00 2001 From: Hause Lin Date: Sun, 28 Jul 2024 00:51:56 -0400 Subject: [PATCH] Truncuate output --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index c8d4b5a..abe28a7 100644 --- a/R/utils.R +++ b/R/utils.R @@ -196,7 +196,7 @@ resp_process_stream <- function(resp, output) { #' #' @examples #' image_path <- file.path(system.file("extdata", package = "ollamar"), "image1.png") -#' image_encode_base64(image_path) +#' substr(image_encode_base64(image_path), 1, 5) # truncate output image_encode_base64 <- function(image_path) { if (!file.exists(image_path)) { stop("Image file does not exist.")