Documentation
¶
Overview ¶
Package providers wires every built-in model provider into a provider.Registry. Importing it links all provider SDKs; embedders that want a smaller binary build their own registry from the providers they use, e.g. provider.NewRegistry(map[string]provider.Factory{"anthropic": provider.Adapt(anthropic.NewClient)}).
Index ¶
- func DMR(ctx context.Context, cfg *latest.ModelConfig, _ environment.Provider, ...) (provider.Provider, error)
- func DefaultFactories() map[string]provider.Factory
- func Google(ctx context.Context, cfg *latest.ModelConfig, env environment.Provider, ...) (provider.Provider, error)
- func NewDefaultRegistry() *provider.Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DMR ¶ added in v1.132.0
func DMR(ctx context.Context, cfg *latest.ModelConfig, _ environment.Provider, opts ...options.Opt) (provider.Provider, error)
DMR serves the Docker Model Runner provider type.
func DefaultFactories ¶
DefaultFactories maps every built-in provider type to its factory. Callers may copy and trim it before building a registry.
func Google ¶ added in v1.132.0
func Google(ctx context.Context, cfg *latest.ModelConfig, env environment.Provider, opts ...options.Opt) (provider.Provider, error)
Google serves the "google" provider type: Gemini models through the Gemini API, or Vertex AI Model Garden when the config asks for it.
func NewDefaultRegistry ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.