if (FALSE) {
# Temperature sweep
config <- llm_config(provider = "openai", model = "gpt-4.1-nano")
messages <- "What is 15 * 23?"
temperatures <- c(0, 0.3, 0.7, 1.0, 1.5)
setup_llm_parallel(workers = 4, verbose = TRUE)
results <- call_llm_sweep(config, "temperature", temperatures, messages)
results |> dplyr::select(temperature, response_text)
reset_llm_parallel(verbose = TRUE)
}
Run the code above in your browser using DataLab