Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(costs): price deepseek/kimi instead of $0 in estimator and live tracker (#1790)
Felix-Ayush2bc2391bba81
diff --git a/packages/core/src/repowise/core/cost_estimator/pricing.py b/packages/core/src/repowise/core/cost_estimator/pricing.pyindex 6e01e7f25..c2af21950 100644--- a/packages/core/src/repowise/core/cost_estimator/pricing.py+++ b/packages/core/src/repowise/core/cost_estimator/pricing.py@@ -38,6 +38,15 @@ _COST_TABLE_EXACT: dict[str, tuple[float, float]] = {"claude-opus-4-6": (0.005, 0.025), # $5 / $25 per MTok"claude-sonnet-4-6": (0.003, 0.015), # $3 / $15 per MTok"claude-haiku-4-5": (0.001, 0.005), # $1 / $5 per MTok+ # DeepSeek V4 — https://api-docs.deepseek.com/quick_start/pricing+ "deepseek-v4-flash": (0.00027, 0.00110), # $0.27 / $1.10 per MTok+ "deepseek-v4-pro": (0.00055, 0.00219), # $0.55 / $2.19 per MTok+ "deepseek-chat": (0.00027, 0.00110),+ "deepseek-reasoner": (0.00055, 0.00219),+ # Kimi / Moonshot — https://platform.moonshot.cn/docs/pricing/chat+ "kimi-for-coding": (0.0006, 0.0024), # $0.60 / $2.40 per MTok+ "kimi-k2.5": (0.0006, 0.0024),+ "kimi-k2.6": (0.0006, 0.0024),}# Prefix fallbacks for unknown variants. No `gpt-5.6` catch-all: the 5.6@@ -54,6 +63,21 @@ _COST_TABLE_PREFIX: dict[str, tuple[float, float]] = {"claude-haiku": (0.001, 0.005),"claude": (0.003, 0.015),"gemini": (0.00025, 0.0015),+ # DeepSeek V4 family — https://api-docs.deepseek.com/quick_start/pricing+ # deepseek-chat was the V3 alias; V4 Flash/Pro are the current names.+ "deepseek-v4-pro": (0.00055, 0.00219),+ "deepseek-v4-flash": (0.00027, 0.00110),+ "deepseek-v4": (0.00027, 0.00110),+ "deepseek-chat": (0.00027, 0.00110),+ "deepseek-reasoner": (0.00055, 0.00219),+ "deepseek": (0.00027, 0.00110),+ # Kimi / Moonshot — https://platform.moonshot.cn/docs/pricing/chat+ "kimi-k2.6": (0.0006, 0.0024),+ "kimi-k2.5": (0.0006, 0.0024),+ "kimi-k2": (0.0006, 0.0024),+ "kimi-for-coding": (0.0006, 0.0024),+ "kimi": (0.0006, 0.0024),+ "moonshot": (0.0006, 0.0024),"llama": (0.0, 0.0),"mock": (0.0, 0.0),"codex_cli/": (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.pyindex 60eb620e8..64c21caad 100644--- a/packages/core/src/repowise/core/generation/cost_tracker.py+++ b/packages/core/src/repowise/core/generation/cost_tracker.py@@ -61,9 +61,15 @@ _PRICING: dict[str, dict[str, float]] = {"gemini-3.1-flash-lite-preview": {"input": 0.075, "output": 0.30},"gemini-3-flash-preview": {"input": 0.075, "output": 0.30},"gemini-3.5-flash-lite": {"input": 0.25, "output": 1.50},- # DeepSeek- "deepseek-v4-flash": {"input": 0.14, "output": 0.28},- "deepseek-v4-pro": {"input": 1.74, "output": 3.48},+ # DeepSeek — https://api-docs.deepseek.com/quick_start/pricing+ "deepseek-v4-flash": {"input": 0.27, "output": 1.10},+ "deepseek-v4-pro": {"input": 0.55, "output": 2.19},+ "deepseek-chat": {"input": 0.27, "output": 1.10},+ "deepseek-reasoner": {"input": 0.55, "output": 2.19},+ # Kimi / Moonshot — https://platform.moonshot.cn/docs/pricing/chat+ "kimi-for-coding": {"input": 0.60, "output": 2.40},+ "kimi-k2.5": {"input": 0.60, "output": 2.40},+ "kimi-k2.6": {"input": 0.60, "output": 2.40},}_FALLBACK_PRICING: dict[str, float] = {"input": 3.0, "output": 15.0}