# \donttest{
library(mall)
llm_use("ollama", "llama3.2")
# Additional arguments will be passed 'as-is' to the
# downstream R function in this example, to ollama::chat()
llm_use("ollama", "llama3.2", seed = 100, temperature = 0.1)
# During the R session, you can change any argument
# individually and it will retain all of previous
# arguments used
llm_use(temperature = 0.3)
# Use .cache to modify the target folder for caching
llm_use(.cache = "_my_cache")
# Leave .cache empty to turn off this functionality
llm_use(.cache = "")
# Use .silent to avoid the print out
llm_use(.silent = TRUE)
# }
Run the code above in your browser using DataLab