dsh-modelscope-pool 0.0.0-stage → 0.9.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/LICENSE +21 -0
- package/README.md +343 -2
- package/cordis.patch.yml +4 -0
- package/lib/catalog.js +105 -0
- package/lib/i18n.js +231 -0
- package/lib/index.js +1094 -0
- package/lib/pool.js +336 -0
- package/lib/provider.js +233 -0
- package/lib/proxy.js +426 -0
- package/lib/quota.js +131 -0
- package/lib/route.js +104 -0
- package/package.json +111 -4
package/package.json
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-modelscope-pool",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "魔搭多 Key 聚合网关:无感路由(模型不变,Key 遇限流/额度不足/无权限/不存在自动换下一个);自动识别国际版/国内版令牌;单个 Key 可禁用/停用/恢复/删除/查看;全部密钥分页浏览;模型实际拉取国际版+国内版合并成简化名、按站点分组;额度低于 2 停用到次日 00:01、多 Key 轮换、限流临时失败冷却 5 分钟,并注册为 DSH 模型供应商",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Yizutt",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Yizutt/dsh-modelscope-pool.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Yizutt/dsh-modelscope-pool",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Yizutt/dsh-modelscope-pool/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"dsh",
|
|
17
|
+
"dsh-go",
|
|
18
|
+
"modelscope",
|
|
19
|
+
"魔搭",
|
|
20
|
+
"llm-gateway",
|
|
21
|
+
"openai-compatible",
|
|
22
|
+
"key-pool"
|
|
23
|
+
],
|
|
24
|
+
"private": false,
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "lib/index.js",
|
|
27
|
+
"dsh": {
|
|
28
|
+
"bundle": {
|
|
29
|
+
"patch": "./cordis.patch.yml"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0-0"
|
|
34
|
+
},
|
|
35
|
+
"dshGo": {
|
|
36
|
+
"v": 1,
|
|
37
|
+
"title": {
|
|
38
|
+
"zh": "魔搭 Key 池",
|
|
39
|
+
"en": "ModelScope keys"
|
|
40
|
+
},
|
|
41
|
+
"icon": "cloud",
|
|
42
|
+
"wants": [
|
|
43
|
+
"clipboard"
|
|
44
|
+
],
|
|
45
|
+
"contributes": {
|
|
46
|
+
"composer.actions": [
|
|
47
|
+
{
|
|
48
|
+
"id": "addkey",
|
|
49
|
+
"label": {
|
|
50
|
+
"zh": "添加 Key",
|
|
51
|
+
"en": "Add key"
|
|
52
|
+
},
|
|
53
|
+
"icon": "paste"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "open-pool",
|
|
57
|
+
"label": {
|
|
58
|
+
"zh": "Key 池",
|
|
59
|
+
"en": "Key pool"
|
|
60
|
+
},
|
|
61
|
+
"icon": "cloud"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"composer.strip": [
|
|
65
|
+
{
|
|
66
|
+
"id": "pool-strip",
|
|
67
|
+
"icon": "cloud",
|
|
68
|
+
"panel": "pool"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"panels": [
|
|
72
|
+
{
|
|
73
|
+
"id": "pool",
|
|
74
|
+
"title": {
|
|
75
|
+
"zh": "魔搭 Key 池",
|
|
76
|
+
"en": "ModelScope keys"
|
|
77
|
+
},
|
|
78
|
+
"icon": "cloud",
|
|
79
|
+
"placement": [
|
|
80
|
+
"session.tab",
|
|
81
|
+
"chat.panel",
|
|
82
|
+
"features"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "key",
|
|
87
|
+
"title": {
|
|
88
|
+
"zh": "Key 详情",
|
|
89
|
+
"en": "Key detail"
|
|
90
|
+
},
|
|
91
|
+
"icon": "info",
|
|
92
|
+
"placement": [
|
|
93
|
+
"chat.panel",
|
|
94
|
+
"features"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "models",
|
|
99
|
+
"title": {
|
|
100
|
+
"zh": "魔搭模型",
|
|
101
|
+
"en": "MS models"
|
|
102
|
+
},
|
|
103
|
+
"icon": "model",
|
|
104
|
+
"placement": [
|
|
105
|
+
"session.tab",
|
|
106
|
+
"chat.panel",
|
|
107
|
+
"features"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|