mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-05 04:13:39 +00:00
fix(cliproxy): correct Claude Opus 5 metadata
This commit is contained in:
1 parent
cd59c49ae8
commit
af4e4fb353
2 files changed
+4
-4
No files matched your search
@@ -504,7 +504,7 @@ export const MODEL_CATALOG: Partial<Record<CLIProxyProvider, ProviderCatalog>> =
|
|||||||
name: 'Claude Opus 5',
|
name: 'Claude Opus 5',
|
||||||
description: 'Latest premium model',
|
description: 'Latest premium model',
|
||||||
nativeImageInput: true,
|
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
|
// and Opus 4.8: Anthropic accepts only effort levels; manual budget_tokens
|
||||||
// is rejected with 400. Proxy metadata reports zero + dynamic allowed.
|
// is rejected with 400. Proxy metadata reports zero + dynamic allowed.
|
||||||
thinking: {
|
thinking: {
|
||||||
|
|||||||
@@ -331,9 +331,9 @@ const PRICING_REGISTRY: Record<string, ModelPricing> = {
|
|||||||
fast: OPUS_48_FAST_RATES,
|
fast: OPUS_48_FAST_RATES,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Claude Opus 5 ($5/$25) — Claude 5 generation Opus (released 2026-07-14).
|
// Claude Opus 5 ($5/$25) — Claude 5 generation Opus (released 2026-07-24).
|
||||||
// Rates mirror Opus 4.8 (same Opus tier); fast mode reuses the 2x premium
|
// Rates mirror Opus 4.8 (same Opus tier); fast mode uses Anthropic's documented
|
||||||
// pending official Opus 5 numbers. Registered explicitly so it resolves to
|
// $10/$50 rates. Registered explicitly so it resolves to
|
||||||
// Opus-tier pricing instead of the unknown-model fallback.
|
// Opus-tier pricing instead of the unknown-model fallback.
|
||||||
'claude-opus-5': {
|
'claude-opus-5': {
|
||||||
inputPerMillion: 5.0,
|
inputPerMillion: 5.0,
|
||||||
|
|||||||
Reference in new issue
Block a user