feat(app): add DeepSeek V4 Pro to the profit estimators with DeepSeek list-price defaults / 利润估算器新增 DeepSeek V4 Pro 并默认采用 DeepSeek 官方定价 - #1007
Merged
Conversation
|
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.
This comment has been minimized.
This comment has been minimized.
… 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%.
…slugged Kimi path on switch / DeepSeek V4 Pro 默认 5% 许可费并修正切回 Kimi 的路径断言
functionstackx
force-pushed
the
feat/profit-estimator-deepseek-v4-pro
branch
from
September 10, 2026 19:08
4dac848 to
c403272
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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, GLM on 10%, MiniMax on 20%).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 (switching back to Kimi lands on the slugged/kimi-k3path, matching the GLM and MiniMax specs, per the Bugbot note); 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 定价页。模型许可费默认 5%(Kimi K3 仍为 30%,GLM 为 10%,MiniMax 为 20%)。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 结果为准。