|
28 | 28 | CLAUDE_MAX_IMAGES = 20 |
29 | 29 |
|
30 | 30 | CLAUDE_MODELS: dict[str, str] = { |
| 31 | + "Opus 5.5": "claude-opus-5-5", |
31 | 32 | "Opus 5": "claude-opus-5", |
32 | 33 | "Opus 4.8": "claude-opus-4-8", |
33 | 34 | "Fable 5.1": "claude-fable-5-1", |
|
44 | 45 | # Models that use the newer "adaptive" thinking mode (Opus 4.7+ require it; older models keep the explicit budget API). |
45 | 46 | # Anthropic decides the actual budget when adaptive is used, based on the `output_config.effort` hint. |
46 | 47 | _ADAPTIVE_THINKING_MODELS = {"Opus 4.8", "Sonnet 5", "Opus 4.7", "Opus 4.6", "Sonnet 4.6"} |
47 | | -_ALWAYS_THINKING_MODELS = {"Opus 5", "Fable 5.1", "Fable 5"} |
48 | | -_XHIGH_EFFORT_MODELS = {"Opus 5", "Opus 4.8", "Fable 5.1", "Fable 5", "Sonnet 5", "Opus 4.7"} |
| 48 | +_ALWAYS_THINKING_MODELS = {"Opus 5.5", "Opus 5", "Fable 5.1", "Fable 5"} |
| 49 | +_XHIGH_EFFORT_MODELS = {"Opus 5.5", "Opus 5", "Opus 4.8", "Fable 5.1", "Fable 5", "Sonnet 5", "Opus 4.7"} |
49 | 50 | _MAX_EFFORT_MODELS = _XHIGH_EFFORT_MODELS | {"Opus 4.6", "Sonnet 4.6"} |
50 | 51 | _EXPLICIT_THINKING_OFF_MODELS = {"Sonnet 5"} |
51 | | -_NO_TEMPERATURE_MODELS = {"Opus 5", "Opus 4.8", "Fable 5.1", "Fable 5", "Sonnet 5"} |
| 52 | +_NO_TEMPERATURE_MODELS = {"Opus 5.5", "Opus 5", "Opus 4.8", "Fable 5.1", "Fable 5", "Sonnet 5"} |
52 | 53 |
|
53 | 54 | # Budget mode (Sonnet 4.5): effort -> reasoning budget in tokens. Must be < max_tokens. |
54 | 55 | # Sized so even the "high" budget fits comfortably under the default max_tokens=32768. |
@@ -225,6 +226,11 @@ def define_schema(cls): |
225 | 226 | "usd": [0.00286, 0.0143], |
226 | 227 | "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" } |
227 | 228 | } |
| 229 | + : $contains($m, "opus 5.5") ? { |
| 230 | + "type": "list_usd", |
| 231 | + "usd": [0.00572, 0.0286], |
| 232 | + "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" } |
| 233 | + } |
228 | 234 | : $contains($m, "opus 5") ? { |
229 | 235 | "type": "list_usd", |
230 | 236 | "usd": [0.00715, 0.03575], |
|
0 commit comments