Skip to content

Commit 32cb570

Browse files
authored
Add Opus 4.6 support (#110)
* Add Opus 4.6 support * Update bytes
1 parent 7a07e94 commit 32cb570

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,17 @@ static MODEL_INDEX: phf::Map<&'static str, ModelInfo> = phf_map! {
335335
},
336336

337337
// Anthropic Models
338+
"claude-opus-4-6" => ModelInfo {
339+
pricing: PricingStructure::Flat {
340+
input_per_1m: 5.0,
341+
output_per_1m: 25.0,
342+
},
343+
caching: CachingSupport::Anthropic {
344+
cache_write_per_1m: 6.25, // 1.25x base input
345+
cache_read_per_1m: 0.5, // 0.1x base input
346+
},
347+
is_estimated: false,
348+
},
338349
"claude-opus-4-5" => ModelInfo {
339350
pricing: PricingStructure::Flat {
340351
input_per_1m: 5.0,
@@ -786,6 +797,7 @@ static MODEL_ALIASES: phf::Map<&'static str, &'static str> = phf_map! {
786797
"gpt-5-pro" => "gpt-5-pro",
787798

788799
// Anthropic aliases
800+
"claude-opus-4-6" => "claude-opus-4-6",
789801
"claude-opus-4-5" => "claude-opus-4-5",
790802
"claude-opus-4.5" => "claude-opus-4-5",
791803
"claude-opus-4-5-20251101" => "claude-opus-4-5",

0 commit comments

Comments
 (0)