feat(app): add MiniMax M3 to the profit estimators with MiniMax list-price defaults / 利润估算器新增 MiniMax M3 并默认采用 MiniMax 官方定价 - #1002
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…price defaults Adds MiniMax M3 to /profit-estimator and /profit-estimator-per-gigawatt (and the /zh mirrors) at /minimax-m3. It opens on 83 tok/s/user and MiniMax's standard <=512K list price ($0.30 input / $0.06 cached / $1.20 output per M tok); OpenRouter stays one click away. Kimi K3 remains the bare-path default.
Adds labCutPct to profitModelDefaults so each model seeds its own license fee. MiniMax M3 opens on 20%; Kimi K3, GLM 5.2/5.3, and the fallback stay on the 30% DEFAULT_LAB_CUT_PCT. A model switch re-seeds the field alongside the interactivity target and price source.
functionstackx
force-pushed
the
feat/profit-estimator-minimax-m3
branch
from
September 4, 2026 22:56
73a2af8 to
0db295f
Compare
|
Found 1 test failure on Blacksmith runners: Failure
|
This was referenced Sep 5, 2026
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 MiniMax M3 (
MiniMax M3 428B) to/profit-estimatorand/profit-estimator-per-gigawatt, plus the/zhmirrors. Stacked on #1001 (GLM 5.2/5.3), which introducedprofitModelDefaults()and the<vendor> list priceoption this PR reuses; the base retargets tomasteronce #1001 merges./profit-estimator/minimax-m3and/profit-estimator-per-gigawatt/minimax-m3(PROFIT_ESTIMATOR_MODELSinmodel-routes.ts). Kimi K3 stays the bare-path default; models outside the allow-list still 404 and stay out of the sitemap.profitModelDefaults(Model.MiniMax_M3)):minimax/minimax-m3sits below it ($0.23 / $0.05 / $0.96 on the model page), so the catalog would understate what the lab charges. OpenRouter and Custom remain one click away; the caption links the MiniMax pricing page when the list price is in force.docs/tco-calculator.mdprofit-estimator section.Tests
profitModelDefaults(Model.MiniMax_M3)and its list to revenue-pricing conversion;modelRoutesForTabnow expects[Kimi K3, MiniMax M3, GLM 5.2]inMODEL_ROUTES(selector) order and theminimax-m3slug.bun run typecheck,bun run lint,bun run fmt, the typography check, and the calculator/routing/sitemap unit files pass locally. One pre-existingbenchmark-transform.test.tscase fails in my sandbox onObject.groupBy(old Node) on the base branch too; unrelated.minimaxm3agentic rows alongsidekimik3andglm5.2, keyed by the?model=the benchmarks intercept is asked for. New specs cover the/minimax-m3route defaults, caption, and pricing-source link; the 3-option price selector (OpenRouter reads the MiniMax row, not Kimi's); Custom seeding from the list price; GLM to MiniMax to Kimi model-switch re-seeding with the expected pathnames; and the/zhmirror label (MiniMax 官方定价). The Kimi selector assertion now expects three models. I could not run Cypress in my sandbox, so please rely on CI for the e2e run.中文说明
在
/profit-estimator与/profit-estimator-per-gigawatt(含/zh镜像)新增 MiniMax M3(MiniMax M3 428B),路径为/minimax-m3。本 PR 叠加在 #1001(GLM 5.2/5.3)之上,复用其profitModelDefaults()与"厂商官方定价"选项;#1001 合并后基准分支会自动切换到master。Kimi K3 仍为默认模型,其他模型继续返回 404。docs/tco-calculator.md。测试:新增 vitest 单元测试(默认值、官方定价换算、路由白名单与 slug);Cypress fixture 新增
minimaxm3agentic 数据并按?model=参数返回,新增 MiniMax 路由默认值、价格来源选择器、自定义价格初始化、GLM → MiniMax → Kimi 切换重置与中文镜像的 e2e 用例。本地已通过 typecheck / lint / fmt / typography 与相关单元测试;沙箱中无法运行 Cypress,请以 CI 结果为准。Note
Low Risk
Extends an existing profit-estimator model allow-list and default seeding with tests and docs; no auth, payment, or core calculation logic changes beyond new default constants.
Overview
Adds MiniMax M3 to
/profit-estimatorand/profit-estimator-per-gigawatt(plus/minimax-m3routes and sitemap coverage), alongside Kimi K3 and GLM 5.2/5.3.Per-model defaults in
profitModelDefaults()now includelabCutPctas well as interactivity and price source. MiniMax M3 opens on 83 tok/s/user, MiniMax list price ($0.30 / $0.06 cached / $1.20 per M tok) with a caption link to MiniMax pay-as-you-go pricing, and a 20% model license fee (others stay at 30%). Switching models inProfitEstimatorDisplayre-seeds target interactivity, token price source, and license fee via a newreseton the percent-field hook.Routing allow-list (
PROFIT_ESTIMATOR_MODELS), docs (docs/tco-calculator.md), Cypress fixtures (minimaxm3agentic rows), and vitest/sitemap tests are updated to match; new e2e coverage asserts defaults, price-source options, GLM→MiniMax→Kimi resets, and Chinese mirror labels.Reviewed by Cursor Bugbot for commit 0db295f. Bugbot is set up for automated code reviews on this repo. Configure here.