You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement Claude Sonnet 5 support in Zoo Code
Add full Claude Sonnet 5 support across all provider paths with correct
model definitions, adaptive-thinking handling, fetcher overrides, and
accurate introductory pricing.
Model definitions (anthropic.ts, bedrock.ts, vertex.ts):
- 1M native context window (no beta header required)
- Adaptive-thinking binary toggle (supportsReasoningBudget/Binary)
- supportsTemperature: false (sampling params return a 400)
- Introductory pricing through Aug 31, 2026:
inputPrice 2.0, outputPrice 10.0, cacheWrites 2.5, cacheReads 0.2
(standard $3/$15 rates take effect Sep 1, 2026)
Provider handling:
- Add sonnet-5 to the Bedrock adaptive-thinking guard
- Add claude-sonnet-5 to OpenRouter and Vercel AI Gateway allow-lists
- Apply Sonnet 5 overrides (maxTokens, reasoning budget, temperature)
in the openrouter, requesty, and vercel-ai-gateway fetchers
Tests:
- Add Sonnet 5 coverage across provider and fetcher test suites
Closes#777
0 commit comments