Expand description
Provider registry and custom providers.
A ProviderRegistry resolves provider:model ids across several
providers; custom_provider builds a provider from explicit model
instances; set_default_registry installs the registry used to resolve
bare model-id strings.
Structs§
- Custom
Provider - A provider that serves pre-built model instances, optionally falling back to another provider for unknown ids.
- Custom
Provider Builder - Builder of a
CustomProvider. - Provider
Registry - Resolves model ids of the form
<provider><separator><model>. - Provider
Registry Builder - Builder of a
ProviderRegistry.
Functions§
- create_
provider_ registry - Creates a registry from
(id, provider)pairs with the default separator:. - custom_
provider - Starts building a provider named
id. - default_
registry - The default registry, if one was installed.
- set_
default_ registry - Installs the registry used to resolve model ids passed as strings.