if (FALSE) {
# Automatic setup
old_plan <- setup_llm_parallel()
# Manual setup with specific workers
setup_llm_parallel(workers = 4, verbose = TRUE)
# Force sequential processing for debugging
setup_llm_parallel(strategy = "sequential")
# Restore old plan if needed
future::plan(old_plan)
}
Run the code above in your browser using DataLab