View source: R/capability_models.R
| set_capability_model | R Documentation |
Set the model used for a named capability. For example, the default chat
model can remain a low-cost text model while vision.inspect uses a
vision-capable language model and image.generate uses an image model.
set_capability_model(
capability,
model,
type = "auto",
required_model_capabilities = NULL
)
capability |
Capability route name, such as |
model |
Model ID string or model object. Passing |
type |
Model type for this route: |
required_model_capabilities |
Optional model capability flags required
by this route, such as |
Invisibly returns the previous model for the route, or the previous route list for batch updates.
old <- set_capability_model("vision.inspect", "openai:gpt-4o")
get_capability_model("vision.inspect")
set_capability_model("vision.inspect", old)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.