provider

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllModels

func AllModels() []llm.Model

func CreateStream

func CreateStream(ctx context.Context, opts llm.StreamOptions) (<-chan llm.StreamEvent, error)

func NewDefaultRegistry

func NewDefaultRegistry() *llm.Registry

NewDefaultRegistry creates a registry with all available providers pre-registered. Each provider checks its own environment variables and registers itself if configured.

Provider configuration:

  • Anthropic: ANTHROPIC_API_KEY, or claude CLI in PATH for Claude Code
  • OpenAI: OPENAI_API_KEY or OPENAI_KEY
  • OpenRouter: OPENROUTER_API_KEY
  • Bedrock: AWS_ACCESS_KEY_ID or ~/.aws/credentials, AWS_REGION
  • Ollama: Always registered, OLLAMA_BASE_URL (optional)

func Provider

func Provider(name string) (llm.Provider, error)

Types

This section is empty.

Directories

Path Synopsis
claude
Package claude provides an Anthropic provider using Claude OAuth tokens.
Package claude provides an Anthropic provider using Claude OAuth tokens.
Package auto provides zero-config multi-provider setup for LLM providers.
Package auto provides zero-config multi-provider setup for LLM providers.

Jump to

Keyboard shortcuts

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