providers

package
v1.164.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func DMR added in v1.132.0

DMR serves the Docker Model Runner provider type.

func DefaultFactories

func DefaultFactories() map[string]provider.Factory

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

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

func NewDefaultRegistry() *provider.Registry

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL