diff --git a/application/use_cases/cost_estimator.py b/application/use_cases/cost_estimator.py index a60b7dd..32706da 100644 --- a/application/use_cases/cost_estimator.py +++ b/application/use_cases/cost_estimator.py @@ -24,7 +24,7 @@ class CostEstimate: "ollama/llama3.2:3b": 0.0, "ollama/phi4:14b": 0.0, # Low tier - "claude-haiku-4-5-20251001": 0.25, + "claude-haiku-4-5-20251001": 1.00, "gemini/gemini-3-flash-preview": 0.10, # Medium tier "claude-sonnet-4-6": 3.00, diff --git a/domain/services/engine_cost_calculator.py b/domain/services/engine_cost_calculator.py index 8db1de1..f93cebd 100644 --- a/domain/services/engine_cost_calculator.py +++ b/domain/services/engine_cost_calculator.py @@ -10,12 +10,12 @@ from dataclasses import dataclass # Pricing per 1 million tokens (input, output). -# Updated 2026-03 — verify periodically against provider pricing pages. +# Updated 2026-05-19 — verify periodically against provider pricing pages. _MODEL_PRICING: dict[str, tuple[float, float]] = { # Anthropic "claude-sonnet-4-6": (3.00, 15.00), "claude-opus-4-6": (15.00, 75.00), - "claude-haiku-4-5-20251001": (0.25, 1.25), + "claude-haiku-4-5-20251001": (1.00, 5.00), # OpenAI "o4-mini": (1.10, 4.40), "gpt-4o": (2.50, 10.00),