Help us shape the future of Go! Take the 2026 Go Developer Survey

providers

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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