dsh-model-allowance 1.0.7 → 1.1.0
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 +8 -4
- package/README.zh.md +4 -4
- package/client.js +1390 -1229
- package/lib/balance.js +59 -3
- package/lib/debug.js +72 -13
- package/lib/providers/deepseek.js +4 -82
- package/lib/providers/holidays.js +89 -0
- package/lib/providers/placeholder.js +3 -59
- package/lib/providers/schedule.js +8 -6
- package/lib/providers/shared.js +6 -4
- package/lib/providers/xiaomi.js +285 -0
- package/lib/providers.js +8 -13
- package/lib/remote.js +3 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ of the current conversation, next to the input box.
|
|
|
22
22
|
- Zhipu Coding Plan
|
|
23
23
|
- Kimi for Coding
|
|
24
24
|
- OpenCode Go
|
|
25
|
+
- Xiaomi MiMo (pay-as-you-go balance and Token Plan)
|
|
25
26
|
|
|
26
27
|
### Not supported
|
|
27
28
|
|
|
@@ -30,7 +31,6 @@ they still appear in the card: the panel says there is no balance API, and
|
|
|
30
31
|
their models stay switchable.
|
|
31
32
|
|
|
32
33
|
- Qwen Token Plan: the vendor publishes no balance API
|
|
33
|
-
- Mimo Token Plan:the vendor publishes no balance API
|
|
34
34
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
@@ -40,10 +40,10 @@ their models stay switchable.
|
|
|
40
40
|
2. Choose **Install** and enter:
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
dsh-model-allowance@1.0
|
|
43
|
+
dsh-model-allowance@1.1.0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Use the latest published version instead of `1.0
|
|
46
|
+
Use the latest published version instead of `1.1.0` when a newer one
|
|
47
47
|
exists.
|
|
48
48
|
3. Confirm the installation. If DSH reports **restart required**, restart
|
|
49
49
|
DSH; otherwise refresh the page.
|
|
@@ -53,7 +53,7 @@ The npm installation is eligible for the Plugin Manager's **Update** action.
|
|
|
53
53
|
### Install from GitHub
|
|
54
54
|
|
|
55
55
|
```
|
|
56
|
-
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0
|
|
56
|
+
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1.0
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Git installations are not covered by the Plugin Manager's **Update** action;
|
|
@@ -63,6 +63,10 @@ updating means removing the old version first, then installing the new tag.
|
|
|
63
63
|
|
|
64
64
|
DeepSeek Harness `>=0.2.1-rc.5 <0.3.0`.
|
|
65
65
|
|
|
66
|
+
## Development
|
|
67
|
+
|
|
68
|
+
Dependencies are managed with pnpm (`pnpm install --frozen-lockfile`).
|
|
69
|
+
|
|
66
70
|
## License
|
|
67
71
|
|
|
68
72
|
[MIT](LICENSE). Provider icons are trademarks of their respective owners,
|
package/README.zh.md
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
- 智谱 Coding Plan
|
|
21
21
|
- Kimi for Coding
|
|
22
22
|
- OpenCode Go
|
|
23
|
+
- Xiaomi MiMo(按量付费余额与 Token Plan)
|
|
23
24
|
|
|
24
25
|
### 不支持
|
|
25
26
|
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
面板会提示“目前无余额接口”,模型列表照常可以切换。
|
|
28
29
|
|
|
29
30
|
- 千问 Token Plan:官方未提供余额接口
|
|
30
|
-
- Mimo Token Plan:官方未提供余额接口
|
|
31
31
|
|
|
32
32
|
## 安装
|
|
33
33
|
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
2. 点击 **Install(安装)**,填入:
|
|
38
38
|
|
|
39
39
|
```
|
|
40
|
-
dsh-model-allowance@1.0
|
|
40
|
+
dsh-model-allowance@1.1.0
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
如果已有更新版本,请把 `1.0
|
|
43
|
+
如果已有更新版本,请把 `1.1.0` 换成最新的精确版本。
|
|
44
44
|
3. 确认安装。如果 DSH 提示需要重启,重启 DSH;否则刷新页面即可。
|
|
45
45
|
|
|
46
46
|
通过 npm 安装的版本可以在 Plugin Manager 中使用 **Update** 更新。
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
### 从 GitHub 安装
|
|
49
49
|
|
|
50
50
|
```
|
|
51
|
-
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.0
|
|
51
|
+
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1.0
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Git 安装不受 Plugin Manager 的 **Update** 管理;更新时需要先移除旧版本,
|