dsh-tokenbank 0.1.36 → 0.1.38

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 +4 -3
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -429,8 +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
- var turns = Math.round(tokens / 2000) // 旧口径:1 轮对话 ≈ 2000 TOKEN
433
- return '获得 $' + usd + ' ≈ ' + humanTokens(turns) + ' 轮对话'
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') + ' 轮对话'
434
435
  }
435
436
 
436
437
  /** 词元数 → "1.2亿"/"3.4万"/"5000"。 */
@@ -580,7 +581,7 @@ window.__ModuleLoader__.load({
580
581
  h('span', { style: { background: '#ff4f1f', color: '#fff', borderRadius: 4, padding: '1px 5px', fontSize: 11, fontWeight: 700 } }, '最优惠'),
581
582
  humanTokens(tbTokens) + ' TOKEN')),
582
583
  h('div', { style: { display: 'flex', justifyContent: 'space-between' } },
583
- h('span', null, 'OpenAI/Anthropic'),
584
+ h('span', null, 'OpenAI/Anthropic 等'),
584
585
  h('span', null, humanTokens(vendorTokens) + ' TOKEN')),
585
586
  h('div', { style: { display: 'flex', justifyContent: 'space-between' } },
586
587
  h('span', null, '国内中转站均价'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
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",