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 (#778)
* 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
* test(bedrock,vercel): address Sonnet 5 PR review feedback
- Add Bedrock createMessage adaptive-thinking test for claude-sonnet-5
(mirrors Opus 4.7/4.8: asserts thinking.type 'adaptive',
output_config.effort 'xhigh', and temperature omitted).
- Tighten Vercel AI Gateway Sonnet 5 temperature assertion to extract
the call arg directly instead of objectContaining({ temperature:
undefined }), which can't distinguish absent from explicitly undefined.
Refs #778
0 commit comments