feat(app): add DeepSeek V4.1 Flash to the profit estimators with DeepSeek Flash list-price defaults / 利润估算器新增 DeepSeek V4.1 Flash 并默认采用 DeepSeek 官方定价 - #1120
Merged
Conversation
…Seek Flash list-price defaults / 利润估算器新增 DeepSeek V4.1 Flash 并默认采用 DeepSeek 官方定价 Adds DeepSeek-V4.1-Flash to PROFIT_ESTIMATOR_MODELS so /profit-estimator/deepseek-v41-flash and /profit-estimator-per-gigawatt/deepseek-v41-flash resolve, with per-model defaults of 125 tok/s/user, DeepSeek list price $0.3 input / $0.006 cached / $1.2 output per M tok (peak-hour deepseek-flash rate), and a 5% model license fee. Adds unit tests, Cypress fixtures and specs (dsv41flash rows, route defaults, custom seeding, model-switch re-seeding, /zh mirror), and updates docs/tco-calculator.md.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…weights) / DeepSeek V4.1 Flash 模型许可费默认 0%(MIT 许可)
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.1 Flash (
DeepSeek V4.1 Flash 552B, registered in #1109) to/profit-estimatorand/profit-estimator-per-gigawatt, plus the/zhmirrors, following the pattern from #1007 (DeepSeek V4 Pro)./profit-estimator/deepseek-v41-flashand/profit-estimator-per-gigawatt/deepseek-v41-flash(PROFIT_ESTIMATOR_MODELSinmodel-routes.ts; the slug is the site-widedeepseek-v41-flashfrom the compare registry). Kimi K3 stays the bare-path default. Models outside the allow-list still 404 and stay out of the sitemap. Selector order is now DeepSeek V4 Pro, DeepSeek V4.1 Flash, Kimi K3, MiniMax M3, GLM 5.2.profitModelDefaults(Model.DeepSeek_V4_1_Flash)):deepseek-flashon the DeepSeek pricing page (off-peak is 50% of that: $0.15 / $0.003 / $0.6; peak is 01:00-04:00 and 06:00-10:00 UTC on weekdays). The same page saysdeepseek-v4-prorequests route to V4.1 Flash at the Flash price from Sep 14 until V4.1 Pro ships. OpenRouter and Custom remain one click away; the caption links the DeepSeek pricing page when the list price is in force./api/v1/availabilityhas nodsv41flashagentic rows yet (the model entered the fleet AgentX-only via InferenceX#2961), so the in-page selector, which intersects the allow-list with models that have agentic data, will not list it in production until those rows land. The slugged routes exist now and will populate without a code change. Any curve whose P90 interactivity range does not straddle 125 will list under Not priced, per the existing clamp-skip behaviour.docs/tco-calculator.mdprofit-estimator section.Tests
profitModelDefaults(Model.DeepSeek_V4_1_Flash)and its list to revenue-pricing conversion.modelRoutesForTabexpects[DeepSeek V4 Pro, DeepSeek V4.1 Flash, Kimi K3, MiniMax M3, GLM 5.2]inMODEL_ROUTESorder, thedeepseek-v41-flashslug, and Kimi K3 as the tab default.bun run typecheck,bun run lint,bun run fmt,bun run check:typography, and the full vitest suite pass locally (the one pre-existingbenchmark-transform.test.tsfailure reproduces onmasterand is unrelated, same as noted in feat(app): add DeepSeek V4 Pro to the profit estimators with DeepSeek list-price defaults / 利润估算器新增 DeepSeek V4 Pro 并默认采用 DeepSeek 官方定价 #1007).dsv41flashagentic rows keyed by?model=DeepSeek-V4.1-Flash. The wide fixture curve tops out at 130 tok/s/user so B200/B300/GB300/MI355X price at 125; the H200 curve tops at 38, so the new spec asserts H200 lands under Not priced. New specs cover the/deepseek-v41-flashroute defaults, caption, and pricing-source link; Custom seeding from the list price; V4 Pro to Flash to Kimi model-switch re-seeding with the expected pathnames; and the/zhmirror label (输入:$0.3,DeepSeek 官方定价). The OpenRouter stub gains adeepseek/deepseek-v4.1-flashrow and the selector assertion now expects five models. Ranprofit-estimator.cy.tslocally in Electron: 45/45 pass on the final commit (an earlier run hit an order-dependent flake inper GW › switches to custom $/GPU/hr when a caption badge is editedthat also reproduces onmasterand passes in isolation).Screenshots from the fixture-backed local run are posted in the Slack thread.
中文说明
在
/profit-estimator与/profit-estimator-per-gigawatt(含/zh镜像)新增 DeepSeek V4.1 Flash(DeepSeek V4.1 Flash 552B,模型本身由 #1109 注册),路径为/deepseek-v41-flash,沿用 #1007(DeepSeek V4 Pro)的模式。Kimi K3 仍为默认模型,其他模型继续返回 404。deepseek-flash的高峰时段价格(非高峰为 5 折:$0.15 / $0.003 / $0.6)。OpenRouter 与自定义仍可一键切换。模型许可费默认 0%(权重采用 MIT 许可,无需计入实验室分成;V4 Pro 仍为 5%)。/api/v1/availability目前还没有dsv41flash的 agentic 数据(模型通过 InferenceX#2961 仅以 AgentX 形式进入 fleet),因此页面内的模型选择器在数据落地前不会显示该模型;带 slug 的路由已就位,数据到达后无需改代码。docs/tco-calculator.md。测试:新增 vitest 单元测试(默认值、官方定价换算、路由白名单与 slug);Cypress fixture 新增
dsv41flashagentic 数据并按?model=参数返回,新增路由默认值(H200 在 125 tok/s/user 下列为未计价)、自定义价格初始化、V4 Pro → Flash → Kimi 切换重置与中文镜像的 e2e 用例。本地已通过 typecheck / lint / fmt / typography、完整单元测试,以及profit-estimator.cy.ts(45/45)。Note
Low Risk
Additive profit-estimator allowlist and defaults with tests and docs; no auth or shared calculator math changes.
Overview
Adds DeepSeek V4.1 Flash to the profit estimator tabs (
/profit-estimatorand/profit-estimator-per-gigawatt, including/zh), using the existing per-model route pattern.The model is included in
PROFIT_ESTIMATOR_MODELSwith slug/deepseek-v41-flashand its owndsv41flashdata bucket (separate from V4 Pro).profitModelDefaultsopens Flash at 125 tok/s/user, DeepSeek peak list pricing ($0.30 / $0.006 cached / $1.20 per M tok), and 0% model license fee (MIT weights). Switching models still re-seeds interactivity, price source, and license fee; SKUs whose agentic curves do not reach 125 tok/s/user stay not priced (no extrapolation).Coverage includes unit tests for defaults and routing, Cypress fixtures and specs (selector now five models, H200 excluded at 125, V4 Pro → Flash → Kimi), sitemap test comment, and
docs/tco-calculator.md.Reviewed by Cursor Bugbot for commit 6a40c96. Bugbot is set up for automated code reviews on this repo. Configure here.