💸 feat(model-pricing): add “show with recharge price” toggle and USD/CNY selector

* Introduced `showWithRecharge` switch in the actions bar to display model prices based on recharge cost.
* Added a `Select` dropdown (USD / CNY) that appears only when the recharge-price mode is enabled.
* Implemented `displayPrice()` helper to:
  * Convert USD prices to recharge prices using `status.price` and `status.usd_exchange_rate`.
  * Format output according to the selected currency.
* Updated price rendering for both quota types to use the new helper and respect K/M unit conversion.
* Removed the old currency switch from the header, retaining only the K/M unit toggle.
* Extended `SearchAndActions` memo dependencies; imported `Select` from Semi UI.
* Minor refactors and comment clean-up.

No breaking changes.
This commit is contained in:
t0ng7u
2025-07-17 22:07:06 +08:00
parent a5da09dfb9
commit f1506ed5da
2 changed files with 59 additions and 30 deletions

View File

@@ -1778,5 +1778,6 @@
"切换为单密钥模式": "Switch to single key mode",
"将仅保留第一个密钥文件,其余文件将被移除,是否继续?": "Only the first key file will be retained, and the remaining files will be removed. Continue?",
"自定义模型名称": "Custom model name",
"启用全部密钥": "Enable all keys"
"启用全部密钥": "Enable all keys",
"以充值价格显示": "Show with recharge price"
}