fix(cliproxy): correct Claude Opus 5 metadata

This commit is contained in:
Tam Nhu Tran committed 2026-07-29 12:36:25 -04:00
1 parent cd59c49ae8
commit af4e4fb353
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -504,7 +504,7 @@ export const MODEL_CATALOG: Partial<Record<CLIProxyProvider, ProviderCatalog>> =
name: 'Claude Opus 5',
description: 'Latest premium model',
nativeImageInput: true,
// Opus 5 (released 2026-07-14) uses adaptive thinking, matching Sonnet 5
// Opus 5 (released 2026-07-24) uses adaptive thinking, matching Sonnet 5
// and Opus 4.8: Anthropic accepts only effort levels; manual budget_tokens
// is rejected with 400. Proxy metadata reports zero + dynamic allowed.
thinking: {
+3 -3
View File
@@ -331,9 +331,9 @@ const PRICING_REGISTRY: Record<string, ModelPricing> = {
fast: OPUS_48_FAST_RATES,
},
},
// Claude Opus 5 ($5/$25) — Claude 5 generation Opus (released 2026-07-14).
// Rates mirror Opus 4.8 (same Opus tier); fast mode reuses the 2x premium
// pending official Opus 5 numbers. Registered explicitly so it resolves to
// Claude Opus 5 ($5/$25) — Claude 5 generation Opus (released 2026-07-24).
// Rates mirror Opus 4.8 (same Opus tier); fast mode uses Anthropic's documented
// $10/$50 rates. Registered explicitly so it resolves to
// Opus-tier pricing instead of the unknown-model fallback.
'claude-opus-5': {
inputPerMillion: 5.0,