dsh-model-allowance 1.0.7 → 1.1.1

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.
package/README.md CHANGED
@@ -15,6 +15,18 @@ lists the provider's models and moves the conversation to the one you pick.
15
15
  The card shows the provider's remaining balance or allowance and the model
16
16
  of the current conversation, next to the input box.
17
17
 
18
+ ## Configure credentials
19
+
20
+ Open **Settings → Model Allowance** to store the vendor credentials the
21
+ balance queries need, such as the Alibaba Cloud AccessKey ID/Secret behind
22
+ Qwen Token Plan readings. A testable pair is verified against the vendor's
23
+ own endpoints before it is saved; stored values can be edited or removed
24
+ later. Values live in DSH's credential store: they are never written into
25
+ configuration, never shown back, and reach nothing but the vendor's own
26
+ query endpoint. The guide under
27
+ [docs/qwen-token-plen-cn](docs/qwen-token-plen-cn/README.md) walks obtaining
28
+ the AccessKey pair.
29
+
18
30
  ## Supported
19
31
 
20
32
  - DeepSeek
@@ -22,6 +34,9 @@ of the current conversation, next to the input box.
22
34
  - Zhipu Coding Plan
23
35
  - Kimi for Coding
24
36
  - OpenCode Go
37
+ - Xiaomi MiMo (pay-as-you-go balance and Token Plan)
38
+ - Qwen Token Plan (CN personal plan; needs the Alibaba Cloud AccessKey pair
39
+ from **Settings → Model Allowance**)
25
40
 
26
41
  ### Not supported
27
42
 
@@ -29,9 +44,6 @@ These vendors publish no balance API. As long as they are configured here,
29
44
  they still appear in the card: the panel says there is no balance API, and
30
45
  their models stay switchable.
31
46
 
32
- - Qwen Token Plan: the vendor publishes no balance API
33
- - Mimo Token Plan:the vendor publishes no balance API
34
-
35
47
  ## Installation
36
48
 
37
49
  ### Install from npm (recommended)
@@ -40,10 +52,10 @@ their models stay switchable.
40
52
  2. Choose **Install** and enter:
41
53
 
42
54
  ```
43
- dsh-model-allowance@1.0.7
55
+ dsh-model-allowance@1.1.0
44
56
  ```
45
57
 
46
- Use the latest published version instead of `1.0.7` when a newer one
58
+ Use the latest published version instead of `1.1.0` when a newer one
47
59
  exists.
48
60
  3. Confirm the installation. If DSH reports **restart required**, restart
49
61
  DSH; otherwise refresh the page.
@@ -53,7 +65,7 @@ The npm installation is eligible for the Plugin Manager's **Update** action.
53
65
  ### Install from GitHub
54
66
 
55
67
  ```
56
- git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0.7
68
+ git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1.0
57
69
  ```
58
70
 
59
71
  Git installations are not covered by the Plugin Manager's **Update** action;
@@ -63,6 +75,10 @@ updating means removing the old version first, then installing the new tag.
63
75
 
64
76
  DeepSeek Harness `>=0.2.1-rc.5 <0.3.0`.
65
77
 
78
+ ## Development
79
+
80
+ Dependencies are managed with pnpm (`pnpm install --frozen-lockfile`).
81
+
66
82
  ## License
67
83
 
68
84
  [MIT](LICENSE). Provider icons are trademarks of their respective owners,
package/README.zh.md CHANGED
@@ -13,6 +13,15 @@
13
13
 
14
14
  卡片显示厂商的余额或剩余额度,以及当前会话所用的模型,位于输入框旁。
15
15
 
16
+ ## 配置凭据
17
+
18
+ 打开 **设置 → Model Allowance**,即可录入余额查询所需的厂商凭据(例如千问
19
+ Token Plan 用量查询用的阿里云 AccessKey ID/Secret)。可测试的凭据在保存前会
20
+ 先经过厂商自己的接口验证,通过后才会落库;已保存的凭据支持修改和删除。密钥
21
+ 保存在 DSH 的凭据存储中:不写入配置文件、不会回显,也不会发往除厂商查询接口
22
+ 外的任何地方。获取 AccessKey 的步骤见
23
+ [配置指南](docs/qwen-token-plen-cn/README.md)。
24
+
16
25
  ## 支持
17
26
 
18
27
  - DeepSeek
@@ -20,15 +29,14 @@
20
29
  - 智谱 Coding Plan
21
30
  - Kimi for Coding
22
31
  - OpenCode Go
32
+ - Xiaomi MiMo(按量付费余额与 Token Plan)
33
+ - 千问 Token Plan(国内个人版;需在 **设置 → Model Allowance** 配置阿里云 AccessKey)
23
34
 
24
35
  ### 不支持
25
36
 
26
37
  以下厂商没有余额接口,但只要本地配置了它们,它们依然会出现在卡片里:
27
38
  面板会提示“目前无余额接口”,模型列表照常可以切换。
28
39
 
29
- - 千问 Token Plan:官方未提供余额接口
30
- - Mimo Token Plan:官方未提供余额接口
31
-
32
40
  ## 安装
33
41
 
34
42
  ### 从 npm 安装(推荐)
@@ -37,10 +45,10 @@
37
45
  2. 点击 **Install(安装)**,填入:
38
46
 
39
47
  ```
40
- dsh-model-allowance@1.0.7
48
+ dsh-model-allowance@1.1.0
41
49
  ```
42
50
 
43
- 如果已有更新版本,请把 `1.0.7` 换成最新的精确版本。
51
+ 如果已有更新版本,请把 `1.1.0` 换成最新的精确版本。
44
52
  3. 确认安装。如果 DSH 提示需要重启,重启 DSH;否则刷新页面即可。
45
53
 
46
54
  通过 npm 安装的版本可以在 Plugin Manager 中使用 **Update** 更新。
@@ -48,7 +56,7 @@
48
56
  ### 从 GitHub 安装
49
57
 
50
58
  ```
51
- git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0.7
59
+ git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1.0
52
60
  ```
53
61
 
54
62
  Git 安装不受 Plugin Manager 的 **Update** 管理;更新时需要先移除旧版本,