View source: R/utils_registry.R
| register_provider | R Documentation |
Register an additional provider factory so it can be resolved through the
default registry's provider:model syntax. Intended for companion packages
(such as aisdk.providers) that ship OpenAI-compatible providers and
register them from their .onLoad hook, e.g.
aisdk::register_provider("deepseek", function() create_deepseek()).
Registration is load-order independent: the factory is replayed into the default registry whether it is registered before or after the registry is first built.
register_provider(id, factory)
id |
The provider ID (e.g. "deepseek"). |
factory |
A zero-argument function returning a provider object, or a
function of one argument ( |
Invisibly TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.