dsh-tokenbank 0.1.35 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +3 -1
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -429,7 +429,9 @@ window.__ModuleLoader__.load({
429
429
  function rechargeHint(fen, creditNano) {
430
430
  var tokens = RECHARGE_HINTS[fen]
431
431
  var usd = (creditNano ? creditNano / 1e9 : (fen / 100 / 6.5)).toFixed(2)
432
- return '获得 $' + usd + ' ≈ ' + humanTokens(tokens) + ' TOKEN'
432
+ var TURNS = { 1000: 214, 5000: 1068, 10000: 2137, 30000: 6410 } // 用户给定口径
433
+ var turns = TURNS[fen] || Math.round(tokens / 180000)
434
+ return '获得 $' + usd + ' ≈ ' + turns.toLocaleString('en-US') + ' 轮对话'
433
435
  }
434
436
 
435
437
  /** 词元数 → "1.2亿"/"3.4万"/"5000"。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "DSH 免费模型:一键注册 TokenBank 领免费 APIKey 送 $5 体验金,免费 GLM 模型直接进模型列表;自带余额查询、API Key 密钥托管(临时额度转永久)、每日签到、充值入口(支付宝),获取免费模型无需自建中转。致敬 dsh-our-free-model。官网 https://bank.skillpie.cn",
5
5
  "type": "module",
6
6
  "license": "MIT",