Adds a bundled models.dev snapshot plus harness-providers::modelsdev to resolve model metadata, and wires live cost display into the TUI's input bar and message state, updating the render snapshots accordingly.
68 lines
2.0 KiB
JSON
68 lines
2.0 KiB
JSON
{
|
|
"anthropic": {
|
|
"id": "anthropic",
|
|
"name": "Anthropic",
|
|
"models": {
|
|
"claude-sonnet-4-5": {
|
|
"id": "claude-sonnet-4-5",
|
|
"reasoning": true,
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 3, "output": 15, "cache_read": 0.3, "cache_write": 3.75 },
|
|
"limit": { "context": 200000, "output": 64000 }
|
|
},
|
|
"claude-opus-4-1": {
|
|
"id": "claude-opus-4-1",
|
|
"reasoning": true,
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 15, "output": 75, "cache_read": 1.5, "cache_write": 18.75 },
|
|
"limit": { "context": 200000, "output": 32000 }
|
|
},
|
|
"claude-haiku-4-5": {
|
|
"id": "claude-haiku-4-5",
|
|
"reasoning": true,
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 1, "output": 5, "cache_read": 0.1, "cache_write": 1.25 },
|
|
"limit": { "context": 200000, "output": 64000 }
|
|
}
|
|
}
|
|
},
|
|
"openai": {
|
|
"id": "openai",
|
|
"name": "OpenAI",
|
|
"models": {
|
|
"gpt-4o": {
|
|
"id": "gpt-4o",
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 2.5, "output": 10, "cache_read": 1.25 },
|
|
"limit": { "context": 128000, "output": 16384 }
|
|
},
|
|
"gpt-4o-mini": {
|
|
"id": "gpt-4o-mini",
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 0.15, "output": 0.6, "cache_read": 0.075 },
|
|
"limit": { "context": 128000, "output": 16384 }
|
|
},
|
|
"gpt-5": {
|
|
"id": "gpt-5",
|
|
"reasoning": true,
|
|
"tool_call": true,
|
|
"attachment": true,
|
|
"cost": { "input": 1.25, "output": 10, "cache_read": 0.125 },
|
|
"limit": { "context": 400000, "output": 128000 }
|
|
},
|
|
"o3": {
|
|
"id": "o3",
|
|
"reasoning": true,
|
|
"tool_call": true,
|
|
"cost": { "input": 2, "output": 8, "cache_read": 0.5 },
|
|
"limit": { "context": 200000, "output": 100000 }
|
|
}
|
|
}
|
|
}
|
|
}
|