feat(app): add DeepSeek V4 Pro to the profit estimators with DeepSeek list-price defaults / 利润估算器新增 DeepSeek V4 Pro 并默认采用 DeepSeek 官方定价 - #1007
Conversation
… list-price defaults Adds DeepSeek V4 Pro 0813 1.6T to /profit-estimator and /profit-estimator-per-gigawatt (and the /zh mirrors) at /deepseek-v4. It opens on 24 tok/s/user, the speed DeepSeek's own API serves at, and DeepSeek's peak-hour list price for deepseek-v4-pro-0813 ($1.32 input / $0.044 cached / $3.96 output per M tok); OpenRouter stays one click away. Kimi K3 remains the bare-path default and the license fee stays at 30%.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4dac848. Configure here.
|
|
||
| cy.get('[data-testid="profit-model-selector"]').click(); | ||
| cy.contains('[role="option"]', 'Kimi K3').click(); | ||
| cy.location('pathname').should('eq', '/profit-estimator-per-gigawatt'); |
There was a problem hiding this comment.
Wrong Kimi switch pathname assertion
Medium Severity
Switching from DeepSeek back to Kimi K3 asserts the bare /profit-estimator-per-gigawatt path. modelRoutePathnameRewrite keeps the slugged /kimi-k3 URL on an in-page switch; only a fresh visit canonicalizes the default model to the bare path. This new spec will fail in Cypress.
Reviewed by Cursor Bugbot for commit 4dac848. Configure here.
|
Found 4 test failures on Blacksmith runners: Failures
|


Summary
Adds DeepSeek V4 Pro (
DeepSeek V4 Pro 0813 1.6T) to/profit-estimatorand/profit-estimator-per-gigawatt, plus the/zhmirrors, following the pattern from #1001 (GLM 5.2/5.3) and #1002 (MiniMax M3)./profit-estimator/deepseek-v4and/profit-estimator-per-gigawatt/deepseek-v4(PROFIT_ESTIMATOR_MODELSinmodel-routes.ts; the slug is the site-widedeepseek-v4from the compare registry). Kimi K3 stays the bare-path default, so DeepSeek V4 Pro gets its own slugged, indexable page here even though it is the app-wide default elsewhere. Models outside the allow-list still 404 and stay out of the sitemap.profitModelDefaults(Model.DeepSeek_V4_Pro)):deepseek-v4-pro-0813on the DeepSeek pricing page (off-peak is 50% of that: $0.66 / $0.022 / $1.98). Pinned as a list price for the same reason as GLM and MiniMax: the OpenRouter aggregate fordeepseek/deepseek-v4-pro-0813sits below even the off-peak rate (about $0.58 / $0.019 / $1.74 at time of writing), so the catalog would understate what the lab charges. OpenRouter and Custom remain one click away; the caption links the DeepSeek pricing page when the list price is in force.DEFAULT_LAB_CUT_PCT.docs/tco-calculator.mdprofit-estimator section.Tests
profitModelDefaults(Model.DeepSeek_V4_Pro)and its list to revenue-pricing conversion; the fallback case now usesModel.DeepSeek_R1since DeepSeek V4 Pro has an entry.modelRoutesForTabexpects[DeepSeek V4 Pro, Kimi K3, MiniMax M3, GLM 5.2]inMODEL_ROUTES(selector) order, thedeepseek-v4slug, and Kimi K3 as the tab default.bun run typecheck,bun run lint,bun run fmt, the typography check, and the full vitest suite pass locally (the one pre-existingbenchmark-transform.test.tsfailure reproduces onmasterin my sandbox and is unrelated).dsv4agentic rows keyed by?model=DeepSeek-V4-Pro. Both fixture curves start below 24 tok/s/user, so the new spec asserts all five SKUs (H200 included) are priced there, unlike the 45/83/100 defaults where H200 is skipped. New specs cover the/deepseek-v4route defaults, caption, and pricing-source link; the 3-option price selector (OpenRouter reads the DeepSeek row at $0.66 / $1.98, not Kimi's); Custom seeding from the list price; Kimi to DeepSeek to Kimi model-switch re-seeding with the expected pathnames; and the/zhmirror label (DeepSeek 官方定价). The Kimi selector assertion now expects four models, and the "404s models the estimator does not serve" checks usedeepseek-r1instead of the never-validdeepseek-v4-proslug. I could not run Cypress in my sandbox, so please rely on CI for the e2e run.中文说明
在
/profit-estimator与/profit-estimator-per-gigawatt(含/zh镜像)新增 DeepSeek V4 Pro(DeepSeek V4 Pro 0813 1.6T),路径为/deepseek-v4,沿用 #1001(GLM 5.2/5.3)与 #1002(MiniMax M3)的模式。Kimi K3 仍为默认模型,其他模型继续返回 404。deepseek-v4-pro-0813的高峰时段价格(非高峰为 5 折:$0.66 / $0.022 / $1.98)。不直接读取 OpenRouter 的原因与 GLM、MiniMax 相同:其聚合价(约 $0.58 / $0.019 / $1.74)低于官方价(甚至低于非高峰价),会低估实验室的实际收入;OpenRouter 与自定义仍可一键切换,使用官方定价时图表说明会链接 DeepSeek 定价页。模型许可费保持默认 30%。docs/tco-calculator.md。测试:新增 vitest 单元测试(默认值、官方定价换算、路由白名单与 slug);Cypress fixture 新增
dsv4agentic 数据并按?model=参数返回,新增 DeepSeek 路由默认值(含 H200 在 24 tok/s/user 下可计价)、价格来源选择器、自定义价格初始化、Kimi → DeepSeek → Kimi 切换重置与中文镜像的 e2e 用例。本地已通过 typecheck / lint / fmt / typography 与完整单元测试;沙箱中无法运行 Cypress,请以 CI 结果为准。Note
Low Risk
Scoped feature addition to profit estimator routing and defaults, with tests and docs; no auth or critical infrastructure changes.
Overview
Adds DeepSeek V4 Pro to both profit estimator tabs (
/profit-estimatorand/profit-estimator-per-gigawatt, including/zh), via the existingdeepseek-v4slug. Kimi K3 stays the bare-path default; DeepSeek gets its own indexable route even though it is the app-wide default elsewhere.Per-model behavior follows GLM/MiniMax:
profitModelDefaultsseeds 24 tok/s/user, DeepSeek peak list pricing ($1.32 / $0.044 cached / $3.96 per M tok with a link to DeepSeek’s pricing docs), and the standard 30% model license fee. Model switches re-seed interactivity, price source, and license fee like the other supported models.Routing & discovery:
PROFIT_ESTIMATOR_MODELSinmodel-routes.tsnow includes DeepSeek V4 Pro; unsupported models still 404. Docs intco-calculator.mddescribe coverage notes at 24 tok/s/user (some SKUs may show as not priced until lower-interactivity data exists).Tests: Vitest covers defaults and route allow-list; Cypress fixtures add
dsv4agentic rows and a dedicated DeepSeek spec (defaults, OpenRouter/custom price flows, Kimi ↔ DeepSeek switching, Chinese labels). Selector expectations move to four models; 404 checks usedeepseek-r1instead of the formerly invalid slug.Reviewed by Cursor Bugbot for commit 4dac848. Bugbot is set up for automated code reviews on this repo. Configure here.