dsh-model-allowance 1.1.1 → 1.2.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 +9 -3
- package/README.zh.md +7 -3
- package/client.js +282 -118
- package/index.js +69 -0
- package/lib/providers/openai_codex.js +334 -0
- package/lib/providers/promotions.js +169 -0
- package/lib/providers/qwen_promotions.js +223 -0
- package/lib/providers/qwen_token_plan.js +3 -0
- package/lib/providers/shared.js +14 -0
- package/lib/providers/zai.js +25 -0
- package/lib/providers.js +6 -2
- package/lib/remote.js +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,12 @@ conversation model.
|
|
|
8
8
|
The card also switches the session: the button next to the console link
|
|
9
9
|
lists the provider's models and moves the conversation to the one you pick.
|
|
10
10
|
|
|
11
|
+
A model covered by a running usage promotion carries a small multiplier
|
|
12
|
+
badge in that list; hovering the badge reads the vendor's one-line
|
|
13
|
+
announcement. Offers show only while they run — a night offer badges only
|
|
14
|
+
at night. Zhipu's offers are declared with the plugin; Qwen Token Plan's
|
|
15
|
+
are read live from its public model catalog, no credential needed.
|
|
16
|
+
|
|
11
17
|
## Usage
|
|
12
18
|
|
|
13
19
|

|
|
@@ -52,10 +58,10 @@ their models stay switchable.
|
|
|
52
58
|
2. Choose **Install** and enter:
|
|
53
59
|
|
|
54
60
|
```
|
|
55
|
-
dsh-model-allowance@1.1
|
|
61
|
+
dsh-model-allowance@1.2.1
|
|
56
62
|
```
|
|
57
63
|
|
|
58
|
-
Use the latest published version instead of `1.1
|
|
64
|
+
Use the latest published version instead of `1.2.1` when a newer one
|
|
59
65
|
exists.
|
|
60
66
|
3. Confirm the installation. If DSH reports **restart required**, restart
|
|
61
67
|
DSH; otherwise refresh the page.
|
|
@@ -65,7 +71,7 @@ The npm installation is eligible for the Plugin Manager's **Update** action.
|
|
|
65
71
|
### Install from GitHub
|
|
66
72
|
|
|
67
73
|
```
|
|
68
|
-
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1
|
|
74
|
+
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.2.1
|
|
69
75
|
```
|
|
70
76
|
|
|
71
77
|
Git installations are not covered by the Plugin Manager's **Update** action;
|
package/README.zh.md
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
卡片同时负责切换:控制台链接旁边的按钮会列出该厂商的模型,选中哪一个,
|
|
8
8
|
会话就切到哪一个。
|
|
9
9
|
|
|
10
|
+
正在生效的用量活动会在列表里对应模型旁标出一枚小倍率徽章;鼠标移到徽章上
|
|
11
|
+
即可读到厂商的一句话说明。活动只在生效时段内展示——夜间优惠只在夜间出现。
|
|
12
|
+
智谱的活动随插件声明;千问 Token Plan 的活动从其公开模型目录活读,无需凭据。
|
|
13
|
+
|
|
10
14
|
## 使用
|
|
11
15
|
|
|
12
16
|

|
|
@@ -45,10 +49,10 @@ Token Plan 用量查询用的阿里云 AccessKey ID/Secret)。可测试的凭
|
|
|
45
49
|
2. 点击 **Install(安装)**,填入:
|
|
46
50
|
|
|
47
51
|
```
|
|
48
|
-
dsh-model-allowance@1.1
|
|
52
|
+
dsh-model-allowance@1.2.1
|
|
49
53
|
```
|
|
50
54
|
|
|
51
|
-
如果已有更新版本,请把 `1.1
|
|
55
|
+
如果已有更新版本,请把 `1.2.1` 换成最新的精确版本。
|
|
52
56
|
3. 确认安装。如果 DSH 提示需要重启,重启 DSH;否则刷新页面即可。
|
|
53
57
|
|
|
54
58
|
通过 npm 安装的版本可以在 Plugin Manager 中使用 **Update** 更新。
|
|
@@ -56,7 +60,7 @@ Token Plan 用量查询用的阿里云 AccessKey ID/Secret)。可测试的凭
|
|
|
56
60
|
### 从 GitHub 安装
|
|
57
61
|
|
|
58
62
|
```
|
|
59
|
-
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.1
|
|
63
|
+
git+https://github.com/MeiK2333/dsh-model-allowance.git#v1.2.1
|
|
60
64
|
```
|
|
61
65
|
|
|
62
66
|
Git 安装不受 Plugin Manager 的 **Update** 管理;更新时需要先移除旧版本,
|