Skip to content

Turn the model square into a CNY price list - #8

Merged
Gyarados4157 merged 1 commit into
mainfrom
feat/pricing-price-board
Oct 22, 2026
Merged

Gyarados4157 merged 1 commit into
mainfrom
feat/pricing-price-board

Conversation

@Gyarados4157

Copy link
Copy Markdown
Collaborator

What changes

/pricing now uses the reference page's layout:

  • Pricing-rules strip: 官方价格按 $1 = ¥6.8 折算 · 充值 ¥1 得 $1 额度, plus the 「计费说明」 button.
  • Group cards: ratio and discount (Claude 满血 2.2折 · 1.5x 倍率), with the group description underneath.
  • Price table: input / output / cache creation / cache read, per 1M tokens:
    • group price in CNY, with the official price struck through underneath;
    • a 「省 78%」 savings column, shown only when there is a real saving;
    • a 「分组价格 / 官方价格」 toggle.
  • Phones: each model becomes a card.
  • Model details: clicking a model name opens the details panel. The Claude Code estimate stays at the bottom.
  • Tiered models: haiku shows its base-tier prices with the note "基础档价格,长上下文更贵".

All figures come from live configuration: group price = official USD × group ratio × Price; official price = official USD × USDExchangeRate.

The filter sidebar, toolbar and card/table views are no longer rendered. Their components are upstream new-api code, so they stay in the tree to keep upstream syncs free of modify/delete conflicts. The reasoning is in .agents/notes/implemented/feature/2026-10-22-model-square-price-board.md.

Checks

  • bun run typecheck: passes
  • bunx vitest run src/features/pricing: 17 files, 301 tests pass, including new unit-prices and price-board tests
  • oxlint and oxfmt --check on the changed files: clean
  • Checked in a browser at 1440 px and 390 px against production data, in both price modes

🤖 Generated with Claude Code

/pricing now leads with a pricing-rules strip, group cards with their
discount, and a table of each model's four Claude Code prices in CNY
beside the struck-through official price and the share saved. The
filter sidebar, toolbar and card views are no longer rendered; their
upstream components stay in the tree to keep upstream syncs clean.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Gyarados4157
Gyarados4157 merged commit e9122f6 into main Oct 22, 2026
@Gyarados4157
Gyarados4157 deleted the feat/pricing-price-board branch October 22, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant