@mofeng2223/dsh-claude-provider 0.3.1 → 0.4.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 +1 -16
- package/README.zh-CN.md +1 -16
- package/lib/client.js +551 -446
- package/package.json +7 -8
- package/src/index.js +37 -23
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ English | [简体中文](./README.zh-CN.md)
|
|
|
4
4
|
|
|
5
5
|
~~DeepSeek Harness's general-purpose reasoning controls did not fully match the request parameters required by newer Claude models. As a result, selecting a reasoning level could either produce an HTTP 400 error or be silently mapped by the adapter to a different effective level—for example, Max in the interface could actually be sent as High. `@mofeng2223/dsh-claude-provider` added an explicit Claude provider type and sent the correct reasoning parameters for each Claude model.~~
|
|
6
6
|
|
|
7
|
-
DeepSeek Harness 0.1.
|
|
7
|
+
Since DeepSeek Harness 0.1.1-rc.1, reasoning-effort parameters for Claude models are supported natively, but they still need to be configured manually in `settings.yaml`. Therefore, this plugin no longer intercepts or rewrites model requests at runtime. Instead, it writes the corresponding native settings to `settings.yaml` when a Claude provider is saved through the front end.
|
|
8
8
|
|
|
9
9
|
The plugin retains its dedicated Claude provider configuration page, so users do not need to edit `settings.yaml` manually. Anthropic-native model discovery, automatic defaults for common Claude models, and other features not yet available in DeepSeek Harness are also retained.
|
|
10
10
|
|
|
@@ -64,12 +64,6 @@ Install the Web profile for the browser interface:
|
|
|
64
64
|
npx @deepseek-ai/dsh plugin --profile web add @mofeng2223/dsh-claude-provider
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Install the Headless profile for command-line runs without the Web interface:
|
|
68
|
-
|
|
69
|
-
```sh
|
|
70
|
-
npx @deepseek-ai/dsh plugin --profile headless add @mofeng2223/dsh-claude-provider
|
|
71
|
-
```
|
|
72
|
-
|
|
73
67
|
Restart the corresponding DeepSeek Harness process after installation.
|
|
74
68
|
|
|
75
69
|
### From source
|
|
@@ -91,19 +85,10 @@ Install the generated package into the Web profile:
|
|
|
91
85
|
npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provider-*.tgz
|
|
92
86
|
```
|
|
93
87
|
|
|
94
|
-
Or install it into the Headless profile:
|
|
95
|
-
|
|
96
|
-
```sh
|
|
97
|
-
npx @deepseek-ai/dsh plugin --profile headless add ./dist/mofeng2223-dsh-claude-provider-*.tgz
|
|
98
|
-
```
|
|
99
|
-
|
|
100
88
|
## Uninstall
|
|
101
89
|
|
|
102
|
-
Run the command for each profile where the plugin was installed:
|
|
103
|
-
|
|
104
90
|
```sh
|
|
105
91
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
106
|
-
npx @deepseek-ai/dsh plugin --profile headless remove @mofeng2223/dsh-claude-provider
|
|
107
92
|
```
|
|
108
93
|
|
|
109
94
|
Uninstalling the plugin does not delete `~/.dsh/settings.yaml` or stored credentials. Existing Claude providers remain ordinary custom `anthropic-messages` routes. Their `reasoningEfforts`, default `reasoning`, and `compat.forceAdaptiveThinking` fields are native RC8 settings, so adaptive thinking and the front-end reasoning-effort selector continue to work. Only the dedicated Claude add/edit UI, model discovery, and recorded defaults disappear.
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
~~DeepSeek Harness 的通用推理强度控制与新版 Claude 模型要求的请求参数并不完全匹配,因此选择某个档位后,可能直接出现 HTTP 400,也可能被适配器静默映射成另一个实际档位,例如界面选择 Max,实际请求却只相当于 High。`@mofeng2223/dsh-claude-provider` 增加了一个明确的 Claude 提供方类型,并按照每个 Claude 模型的配置发送正确的推理参数。~~
|
|
6
6
|
|
|
7
|
-
DeepSeek Harness 0.1.
|
|
7
|
+
自 DeepSeek Harness 0.1.1-rc.1 起,官方已支持 Claude 系列模型的推理强度参数,但仍需要在 `settings.yaml` 中手动配置。因此,本插件不再在运行时拦截或改写模型请求,而是在用户通过前端保存 Claude 提供方时,将相应的原生配置正确写入 `settings.yaml`。
|
|
8
8
|
|
|
9
9
|
插件仍保留专用的 Claude 提供方配置页面,用户无需手动编辑 `settings.yaml`。Anthropic 原生模型探测、常用 Claude 模型参数自动填写等官方尚未实现的功能也继续保留。
|
|
10
10
|
|
|
@@ -64,12 +64,6 @@ DeepSeek Harness 0.1.0-rc.8 已支持 Claude 系列模型的推理强度参数
|
|
|
64
64
|
npx @deepseek-ai/dsh plugin --profile web add @mofeng2223/dsh-claude-provider
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
不使用 Web 界面的命令行运行使用 Headless Profile:
|
|
68
|
-
|
|
69
|
-
```sh
|
|
70
|
-
npx @deepseek-ai/dsh plugin --profile headless add @mofeng2223/dsh-claude-provider
|
|
71
|
-
```
|
|
72
|
-
|
|
73
67
|
安装后需要重启对应的 DeepSeek Harness 进程。
|
|
74
68
|
|
|
75
69
|
### 从源码安装
|
|
@@ -91,19 +85,10 @@ npm pack --pack-destination dist
|
|
|
91
85
|
npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provider-*.tgz
|
|
92
86
|
```
|
|
93
87
|
|
|
94
|
-
或者安装到 Headless Profile:
|
|
95
|
-
|
|
96
|
-
```sh
|
|
97
|
-
npx @deepseek-ai/dsh plugin --profile headless add ./dist/mofeng2223-dsh-claude-provider-*.tgz
|
|
98
|
-
```
|
|
99
|
-
|
|
100
88
|
## 卸载
|
|
101
89
|
|
|
102
|
-
插件安装在哪个 Profile,就执行对应的卸载命令:
|
|
103
|
-
|
|
104
90
|
```sh
|
|
105
91
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
106
|
-
npx @deepseek-ai/dsh plugin --profile headless remove @mofeng2223/dsh-claude-provider
|
|
107
92
|
```
|
|
108
93
|
|
|
109
94
|
卸载插件不会删除 `~/.dsh/settings.yaml` 或已经保存的凭据。已有的 Claude 提供方会继续作为普通的 `anthropic-messages` 自定义路由保留;`reasoningEfforts`、默认 `reasoning` 和 `compat.forceAdaptiveThinking` 都是 RC8 原生字段,因此自适应思考和前端推理等级选择仍然有效。卸载后只会失去 Claude 专用的添加/编辑界面、模型探测和参数预填。
|