Add Claude Haiku 4.5 to model catalog

Makes Haiku discoverable via list_models and get_model_info with
aliases "haiku" and "claude-haiku".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: ed7df801c2a4
This commit is contained in:
Bryan Helmkamp 2026-02-25 14:21:58 -05:00
parent 66a918be2b
commit 52842e21a7
2 changed files with 15 additions and 2 deletions

View file

@ -25,6 +25,19 @@
"output_cost_per_million": 15.0,
"aliases": ["sonnet", "claude-sonnet"]
},
{
"id": "claude-haiku-4-5-20251001",
"provider": "anthropic",
"display_name": "Claude Haiku 4.5",
"context_window": 200000,
"max_output": 8192,
"supports_tools": true,
"supports_vision": true,
"supports_reasoning": false,
"input_cost_per_million": 0.8,
"output_cost_per_million": 4.0,
"aliases": ["haiku", "claude-haiku"]
},
{
"id": "gpt-5.2",
"provider": "openai",

View file

@ -75,13 +75,13 @@ mod tests {
#[test]
fn list_models_all() {
let models = list_models(None);
assert_eq!(models.len(), 7);
assert_eq!(models.len(), 8);
}
#[test]
fn list_models_by_provider() {
let anthropic = list_models(Some("anthropic"));
assert_eq!(anthropic.len(), 2);
assert_eq!(anthropic.len(), 3);
assert!(anthropic.iter().all(|m| m.provider == "anthropic"));
let openai = list_models(Some("openai"));