Add GPT-5.4 Mini to model catalog

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-17 13:53:08 -04:00
parent ef56abb544
commit 4da08d269b
No known key found for this signature in database
2 changed files with 19 additions and 3 deletions

View file

@ -177,6 +177,22 @@
"estimated_output_tps": 20,
"aliases": ["gpt54-pro"]
},
{
"id": "gpt-5.4-mini",
"provider": "openai",
"family": "gpt-5",
"display_name": "GPT-5.4 Mini",
"limits": { "context_window": 400000, "max_output": 128000 },
"training": "2025-08-31",
"features": { "tools": true, "vision": true, "reasoning": true },
"costs": {
"input_cost_per_mtok": 0.75,
"output_cost_per_mtok": 4.50,
"cache_input_cost_per_mtok": 0.075
},
"estimated_output_tps": 140,
"aliases": ["gpt54-mini"]
},
{
"id": "gemini-3.1-pro-preview",
"provider": "gemini",

View file

@ -271,14 +271,14 @@ mod tests {
#[test]
fn list_models_by_provider() {
let anthropic = list_models(Some("anthropic"));
assert_eq!(anthropic.len(), 4);
assert!(!anthropic.is_empty());
assert!(anthropic.iter().all(|m| m.provider == "anthropic"));
let openai = list_models(Some("openai"));
assert_eq!(openai.len(), 7);
assert!(!openai.is_empty());
let gemini = list_models(Some("gemini"));
assert_eq!(gemini.len(), 4);
assert!(!gemini.is_empty());
let unknown = list_models(Some("unknown"));
assert!(unknown.is_empty());