provider

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 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. Providers are configured using environment variables:

  • OPENAI_KEY for OpenAI
  • OPENROUTER_API_KEY for OpenRouter
  • OLLAMA_BASE_URL for Ollama (optional, defaults to http://localhost:11434)

Claude Code provider is always registered (uses local claude CLI).

func Provider

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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