View source: R/LLM_parallel_utils.R
| expand_llm_config | R Documentation |
Creates a list of llm_config objects from a base configuration and sweeping
parameter vectors. Uses expand.grid() internally.
expand_llm_config(base_config, ...)
base_config |
An llm_config object to use as the base. |
... |
Named vectors of parameter values to sweep (e.g., |
A list of llm_config objects.
llm_config(), llm_cross_design(), call_llm_par()
base <- llm_config("openai", "gpt-4.1-nano")
cfgs <- expand_llm_config(base,
temperature = c(0, 0.5, 1),
model = c("gpt-4.1-nano", "gpt-4.1-mini"))
length(cfgs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.