dsh-connect-modelscope-token-plan 0.6.2 → 0.6.4
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/CHANGELOG.md +74 -0
- package/README.md +71 -64
- package/assets/modelscope-usage-capsule.png +0 -0
- package/client.js +50 -40
- package/lib/host-config.js +22 -10
- package/lib/index.js +299 -128
- package/lib/llm-adapter.js +1 -1
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +2 -2
- package/screenshots.json +2 -1
package/lib/llm-adapter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as redactSecrets, S as reclassifyStream, a as name, c as LLM_DISPLAY_NAME, l as LLM_PROVIDER_ID, s as LLM_API_KEY_NAME, u as buildDescriptors, y as CODE } from "./host-config.js";
|
|
2
2
|
import { createProvider } from "@earendil-works/pi-ai";
|
|
3
3
|
import { openAICompletionsApi } from "@earendil-works/pi-ai/api/openai-completions.lazy";
|
|
4
4
|
import { PiAiAdapter } from "@deepseek-ai/dsh-llm-pi-ai";
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "ModelScope Model Access",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "One-tap connect ModelScope language and image-generation models into DSH (off by default), with image recognition and context window filled in automatically. You can also see the free Magicube balance, jump to a model's info page, and record local call counts, trends and rate-limit events, with a usage pill beside the input box showing the balance and today's local count. All of it needs only an API key, with no account sign-in."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "魔搭模型接入",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "一键接入魔搭社区的语言、生图模型到 DSH(默认关),自动填入图片识别与上下文窗口;还可查看免费魔粒余额、跳转到模型信息页,记录本地调用计数、趋势、限流事件,输入框旁另有用量胶囊显示余额与今日本地调用次数。上述功能仅需填入 API key,不需要登录账号。"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "dsh-connect-modelscope-token-plan",
|
|
3
3
|
"displayName": "DSH Connect ModelScope Token Plan",
|
|
4
4
|
"icon": "./icon.svg",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.4",
|
|
6
6
|
"homepage": "https://github.com/eghrhegpe/dsh-connect-modelscope-token-plan",
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "https://github.com/eghrhegpe/dsh-connect-modelscope-token-plan/issues"
|
|
9
9
|
},
|
|
10
10
|
"author": "eghrhegpe",
|
|
11
|
-
"description": "ModelScope (
|
|
11
|
+
"description": "One-tap connect ModelScope language and image-generation models into DSH (off by default), with image recognition and context window filled in automatically. You can also see the free Magicube balance, jump to a model's info page, and record local call counts, trends and rate-limit events, with a usage pill beside the input box showing the balance and today's local count. All of it needs only an API key, with no account sign-in.",
|
|
12
12
|
"keywords": [
|
|
13
13
|
"dsh-plugin",
|
|
14
14
|
"deepseek-harness",
|