dsh-gateway-provider 1.0.0 → 1.0.2
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 +7 -8
- package/{README.zh.md → docs/README.zh.md} +6 -7
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/Luck9Star/dsh-gateway-provider/actions/workflows/gitleaks.yml)
|
|
4
4
|
|
|
5
|
-
> 中文文档:[README.zh.md](README.zh.md)
|
|
5
|
+
> 中文文档:[docs/README.zh.md](docs/README.zh.md)
|
|
6
6
|
|
|
7
7
|
Bring any LLM gateway — **newapi, LiteLLM, Higress, or any OpenAI-compatible
|
|
8
8
|
endpoint** — into DeepSeek Harness. The plugin discovers the gateway's model
|
|
@@ -47,17 +47,16 @@ re-deploy.
|
|
|
47
47
|
|
|
48
48
|
## Quickstart
|
|
49
49
|
|
|
50
|
-
1. Install the plugin into your profile
|
|
50
|
+
1. Install the plugin into your profile (published on npm):
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
dsh plugin --profile web add
|
|
53
|
+
dsh plugin --profile web add dsh-gateway-provider # latest
|
|
54
|
+
dsh plugin --profile web add dsh-gateway-provider@1.0.2 # pinned
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
`dsh plugin add` forwards to `pnpm add` in the profile directory
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
row automatically — no manual patch editing. The bare package name will
|
|
60
|
-
resolve once the package is published to npm.
|
|
57
|
+
`dsh plugin add` forwards to `pnpm add` in the profile directory.
|
|
58
|
+
The bundle patch (`cordis.patch.yml`) then mounts the `llm-newapi`
|
|
59
|
+
loader row automatically — no manual patch editing.
|
|
61
60
|
|
|
62
61
|
2. Store your gateway key in `$DSH_HOME/.credentials.yaml` (mode 0600,
|
|
63
62
|
hot-reloaded):
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/Luck9Star/dsh-gateway-provider/actions/workflows/gitleaks.yml)
|
|
4
4
|
|
|
5
|
-
> English: [README.md](README.md)
|
|
5
|
+
> English: [README.md](../README.md)
|
|
6
6
|
|
|
7
7
|
把任意 LLM 网关 —— **newapi、LiteLLM、Higress 或任何 OpenAI 兼容端点** —— 接入
|
|
8
8
|
DeepSeek Harness。插件自动发现网关的模型列表,用 [models.dev](https://models.dev)
|
|
@@ -41,16 +41,15 @@ provider。如果你的模型都在网关后面,就得手工维护一份静态
|
|
|
41
41
|
|
|
42
42
|
## 快速开始
|
|
43
43
|
|
|
44
|
-
1. 把插件装进 profile
|
|
44
|
+
1. 把插件装进 profile(已发布到 npm):
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
dsh plugin --profile web add
|
|
47
|
+
dsh plugin --profile web add dsh-gateway-provider # 最新版
|
|
48
|
+
dsh plugin --profile web add dsh-gateway-provider@1.0.2 # 钉住版本
|
|
48
49
|
```
|
|
49
50
|
|
|
50
|
-
`dsh plugin add` 会在 profile 目录里转发执行 `pnpm add
|
|
51
|
-
|
|
52
|
-
bundle 补丁(`cordis.patch.yml`)随后自动挂载 `llm-newapi` 加载行——
|
|
53
|
-
无需手工改 patch。裸包名要等发布到 npm 之后才能解析。
|
|
51
|
+
`dsh plugin add` 会在 profile 目录里转发执行 `pnpm add`。bundle 补丁
|
|
52
|
+
(`cordis.patch.yml`)随后自动挂载 `llm-newapi` 加载行——无需手工改 patch。
|
|
54
53
|
|
|
55
54
|
2. 把网关 key 写入 `$DSH_HOME/.credentials.yaml`(权限 0600,热加载):
|
|
56
55
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-gateway-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Generic LLM gateway model provider plugin for DeepSeek Harness: mounts newapi / LiteLLM / Higress / any OpenAI-compatible gateway as provider routes, auto-discovers the model list, enriches every model with models.dev parameters, and dispatches each model over its native wire protocol (OpenAI / Anthropic / Gemini) via the pi-ai SDK",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Luck9Star/dsh-gateway-provider.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/Luck9Star/dsh-gateway-provider/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/Luck9Star/dsh-gateway-provider#readme",
|
|
5
13
|
"type": "module",
|
|
6
14
|
"main": "index.js",
|
|
7
15
|
"exports": {
|
|
@@ -12,7 +20,8 @@
|
|
|
12
20
|
"files": [
|
|
13
21
|
"index.js",
|
|
14
22
|
"lib",
|
|
15
|
-
"cordis.patch.yml"
|
|
23
|
+
"cordis.patch.yml",
|
|
24
|
+
"docs"
|
|
16
25
|
],
|
|
17
26
|
"scripts": {
|
|
18
27
|
"link": "bash scripts/link.sh",
|