Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(costs): price Mistral Large in estimator and live tracker (#1803)

Felix-Ayush886ad5b6aa38
diff --git a/packages/core/src/repowise/core/cost_estimator/pricing.py b/packages/core/src/repowise/core/cost_estimator/pricing.py
index 789750245..7bdd85d31 100644
--- a/packages/core/src/repowise/core/cost_estimator/pricing.py
+++ b/packages/core/src/repowise/core/cost_estimator/pricing.py
@@ -65,6 +65,8 @@ _COST_TABLE_EXACT: dict[str, tuple[float, float]] = {
"kimi-for-coding": (0.0006, 0.0024), # $0.60 / $2.40 per MTok
"kimi-k2.5": (0.0006, 0.0024),
"kimi-k2.6": (0.00095, 0.004), # $0.95 / $4 per MTok
+ # Mistral — https://mistral.ai/pricing
+ "mistral-large-latest": (0.0005, 0.0015), # $0.50 / $1.50 per MTok
}
# Prefix fallbacks for unknown variants. No `gpt-5.6` catch-all: the 5.6
@@ -103,6 +105,8 @@ _COST_TABLE_PREFIX: dict[str, tuple[float, float]] = {
"kimi-for-coding": (0.0006, 0.0024),
"kimi": (0.0006, 0.0024),
"moonshot": (0.0006, 0.0024),
+ # Mistral — https://mistral.ai/pricing
+ "mistral-large": (0.0005, 0.0015), # $0.50 / $1.50 per MTok
"llama": (0.0, 0.0),
"mock": (0.0, 0.0),
**dict.fromkeys(ZERO_COST_MODEL_PREFIXES, (0.0, 0.0)),
diff --git a/packages/core/src/repowise/core/generation/cost_tracker.py b/packages/core/src/repowise/core/generation/cost_tracker.py
index 0fd36ce27..f7808c34c 100644
--- a/packages/core/src/repowise/core/generation/cost_tracker.py
+++ b/packages/core/src/repowise/core/generation/cost_tracker.py
@@ -89,6 +89,8 @@ _PRICING: dict[str, dict[str, float]] = {
"kimi-for-coding": {"input": 0.60, "output": 2.40},
"kimi-k2.5": {"input": 0.60, "output": 2.40},
"kimi-k2.6": {"input": 0.95, "output": 4.00},
+ # Mistral — https://mistral.ai/pricing
+ "mistral-large-latest": {"input": 0.5, "output": 1.5},
}
_FALLBACK_PRICING: dict[str, float] = {"input": 3.0, "output": 15.0}