View source: R/model_defaults.R
| model | R Documentation |
Shortcut for default model configuration. Call with no arguments to read the
current default model, or pass a model to update it. This is equivalent to
calling get_model() and set_model() directly. Runtime options can be
supplied without new to update the current default model's options.
model(new, ...)
new |
Optional model identifier string or |
... |
Runtime options forwarded to |
When new is missing, returns the current default model. Otherwise
invisibly returns the previous default model.
model()
model("openai:gpt-4o-mini")
model(NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.