Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStream ¶
func CreateStream(ctx context.Context, opts llm.StreamOptions) (<-chan llm.StreamEvent, error)
func NewDefaultRegistry ¶
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
- ANTHROPIC_API_KEY for Anthropic
- OLLAMA_BASE_URL for Ollama (optional, defaults to http://localhost:11434)
Claude Code provider is always registered (uses local claude CLI).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.