Skip to main content

Available Providers

Installation

Configuration

Environment Variables

Check Availability

Provider Factory

Auto-Detection

Specific Provider

Custom Model

Direct Provider Usage

Anthropic

With claude-opus-5 (and Claude Fable 5 / 5.1), requests opt into Anthropic’s server-side refusal fallbacks: if a safety classifier declines a request, the API retries it on Anthropic’s recommended fallback model. If the whole chain declines, complete() raises LLMError.

OpenAI

Google

Ollama (Local)

Ollama runs completely locally - no API keys, no data sent externally, works offline. Setup:
Usage:
Recommended Models: See the Ollama notebook for working examples.

Using with Explainer/Generator

Response Metadata

Get usage information with complete_with_metadata:

Error Handling

Provider Interface

All providers implement LLMProvider:

API Reference

See LLM API Reference for complete API documentation.