Description
Claude 3.5 Sonnet is the best model for coding tasks. We should default to it when ANTHROPIC_API_KEY is set, with fallback to GPT-4o and then Ollama.
Model priority
- Claude 3.5 Sonnet (
claude-3-5-sonnet-20241022) — if ANTHROPIC_API_KEY set
- GPT-4o (
gpt-4o) — if OPENAI_API_KEY set
- Ollama (
llama3) — always available, free, local
Auto-failover: if primary model fails (rate limit, error), automatically try the next one.
Description
Claude 3.5 Sonnet is the best model for coding tasks. We should default to it when
ANTHROPIC_API_KEYis set, with fallback to GPT-4o and then Ollama.Model priority
claude-3-5-sonnet-20241022) — ifANTHROPIC_API_KEYsetgpt-4o) — ifOPENAI_API_KEYsetllama3) — always available, free, localAuto-failover: if primary model fails (rate limit, error), automatically try the next one.