File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ docker-compose.yml
14
14
paper /paper.jats
15
15
paper /paper.pdf
16
16
paper /paper_files
17
+ load-experiments.R
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ check_model_installed <- function(model,
20
20
auto_pull = FALSE ,
21
21
server = getOption(" rollama_server" ,
22
22
default = " http://localhost:11434" )) {
23
-
23
+
24
24
model <- sub(" ^([^:]+)$" , " \\ 1:latest" , model )
25
25
for (sv in server ) {
26
26
models_df <- list_models(server = sv )
27
27
mdl <- setdiff(model , models_df [[" name" ]])
28
-
28
+
29
29
if (length(mdl ) > 0L ) {
30
30
if (check_only ) {
31
31
return (invisible (FALSE ))
32
32
}
33
33
if (interactive() && ! auto_pull ) {
34
34
msg <- c(
35
- " {cli::col_cyan(cli::symbol$info)} {sv}: " ,
36
- " Model{?s} {.emph {mdl}} not installed on." ,
35
+ " {cli::col_cyan(cli::symbol$info)}" ,
36
+ " Model{?s} {.emph {mdl}} not installed on {sv} ." ,
37
37
" Would you like to download {?it/them}?"
38
38
)
39
39
auto_pull <- utils :: askYesNo(cli :: cli_text(msg ))
You can’t perform that action at this time.
0 commit comments