dsh-provider-qoder 0.4.1 → 0.4.3
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 +13 -22
- package/README_CN.md +13 -25
- package/lib/client.js +549 -277
- package/lib/index.d.ts +8 -44
- package/lib/index.js +785 -522
- package/package.json +19 -16
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/dsh-provider-qoder)
|
|
4
4
|
[](LICENSE)
|
|
5
|
+
[](https://github.com/mo-n/dsh-provider-qoder)
|
|
5
6
|
[](https://awesome-dsh-plugin.com)
|
|
6
7
|
|
|
7
8
|
English | [简体中文](./README_CN.md)
|
|
@@ -15,17 +16,18 @@ This project is a community adapter plugin and is not affiliated with Qoder or D
|
|
|
15
16
|
|
|
16
17
|
- Configure subscription access via Qoder Personal Access Token (PAT).
|
|
17
18
|
- Supports both Global (`global`) and China (`china`) services.
|
|
18
|
-
-
|
|
19
|
-
- Supports multimodality, search, and tool calls.
|
|
19
|
+
- Automatically fetches available models for your account, supports selecting enabled models, and displays pricing multipliers and reasoning effort options when reported by the service.
|
|
20
|
+
- Supports multimodality, web search, and tool calls.
|
|
20
21
|
- View account information, quota, and reset dates in Settings.
|
|
21
22
|
|
|
22
23
|
## Installation
|
|
23
24
|
|
|
24
25
|
### Prerequisites
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
- An active Qoder subscription and a PAT matching the selected service region.
|
|
28
|
+
- The DSH profile running the plugin must provide a managed credentials service; when configuring via the settings page, the credential storage must also be writable.
|
|
29
|
+
- Requirements: DSH `>=0.1.7-rc.2`.
|
|
27
30
|
|
|
28
|
-
This package supports DSH `>=0.1.7-rc.2 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0`, Cordis `>=4.0.4 <5`, and React `^18.2.0`.
|
|
29
31
|
### Install from npm
|
|
30
32
|
|
|
31
33
|
Run in your terminal:
|
|
@@ -47,27 +49,14 @@ Open DSH Web, navigate to **Settings → Models**, locate the **Qoder Credential
|
|
|
47
49
|
|
|
48
50
|
Select the region matching your account, enter your Qoder PAT into the input box labeled **API Key**, and click **Save**.
|
|
49
51
|
|
|
50
|
-
|
|
52
|
+
Once saved, the plugin automatically fetches the list of supported models for your account, making them immediately available in the DSH model picker.
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
2. Expand **Custom Settings** and click **Fetch Available Models**.
|
|
54
|
-
3. Select the models you want to enable (keep at least one), then click **Save**.
|
|
55
|
-
4. Select a Qoder model in the DSH model picker to start chatting.
|
|
54
|
+
### 2. View Account & Manage Models
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
The model picker refreshes Qoder metadata for enabled models when opened, with a five-minute cache after a successful fetch. When settings are writable, refreshed multipliers and capabilities are also synchronized to the saved catalog shown in **Custom Settings**, without enabling additional models. Failed refreshes retain the last known metadata.
|
|
56
|
+
Open **Settings → Qoder** to view account and quota details, configure the web search policy, and adjust enabled models:
|
|
60
57
|
|
|
61
58
|
<p align="center">
|
|
62
|
-
<img src="./assets/
|
|
63
|
-
</p>
|
|
64
|
-
|
|
65
|
-
### 3. View Account & Quota
|
|
66
|
-
|
|
67
|
-
Open **Settings → Qoder** to view account and quota details, and configure the web search policy as needed:
|
|
68
|
-
|
|
69
|
-
<p align="center">
|
|
70
|
-
<img src="./assets/account-quota.png" alt="Qoder account quota and search settings" width="650" />
|
|
59
|
+
<img src="./assets/account-quota.png" alt="Qoder account quota and model settings" width="650" />
|
|
71
60
|
</p>
|
|
72
61
|
|
|
73
62
|
## Upcoming Features
|
|
@@ -83,4 +72,6 @@ Open **Settings → Qoder** to view account and quota details, and configure the
|
|
|
83
72
|
|
|
84
73
|
Please report issues via [GitHub Issues](https://github.com/mo-n/dsh-provider-qoder/issues) with the plugin and DSH versions, selected service region, reproduction steps, and sanitized error messages. Do not submit PATs, short-lived tokens, or personal account information.
|
|
85
74
|
|
|
86
|
-
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
This project is licensed under the [MIT License](LICENSE).
|
package/README_CN.md
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
[](https://github.com/mo-n/dsh-provider-qoder)
|
|
6
6
|
[](https://awesome-dsh-plugin.com)
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
[English](./README.md) | 简体中文
|
|
10
9
|
|
|
11
|
-
在 DeepSeek Harness(DSH
|
|
10
|
+
在 DeepSeek Harness(DSH)中使用 Qoder 订阅,支持多模态、联网搜索和工具调用,可选择国际版或中国区 Qoder 服务。
|
|
12
11
|
|
|
13
12
|
插件负责认证和模型通信,工具执行、工作区操作及权限管理由 DSH 负责。
|
|
14
13
|
本项目是社区适配插件,与 Qoder、DeepSeek 官方均无关联。
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
|
|
18
17
|
- 通过 Qoder Personal Access Token(PAT,个人访问令牌)配置订阅访问。
|
|
19
18
|
- 支持国际版(`global`)和中国区(`china`)服务。
|
|
20
|
-
-
|
|
19
|
+
- 自动拉取账号可用模型,支持选择启用的模型,并在服务支持时显示价格倍率和推理强度选项。
|
|
21
20
|
- 支持多模态、搜索以及工具调用。
|
|
22
21
|
- 在设置中查看账号信息、额度和重置时间。
|
|
23
22
|
|
|
@@ -25,9 +24,9 @@
|
|
|
25
24
|
|
|
26
25
|
### 使用前提
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
- 拥有可用的 Qoder 订阅,以及与所选服务区域匹配的 PAT。
|
|
28
|
+
- 运行插件的 DSH profile 必须提供托管凭据服务;通过设置页面配置时,凭据存储还需可写。
|
|
29
|
+
- 环境要求:DSH `>=0.1.7-rc.2`。
|
|
31
30
|
|
|
32
31
|
### 从 npm 安装
|
|
33
32
|
|
|
@@ -50,31 +49,18 @@ dsh plugin --profile web add dsh-provider-qoder
|
|
|
50
49
|
|
|
51
50
|
选择与账号一致的区域,将 Qoder PAT 填入界面标为 **API 密钥** 的输入框,然后点击 **保存**。
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
1. 保存 PAT 和服务区域后,再次点击 **编辑**。
|
|
56
|
-
2. 展开 **自定义设置**,点击 **获取可用模型**。
|
|
57
|
-
3. 选择需要启用的模型,至少保留一个,然后点击 **保存**。
|
|
58
|
-
4. 在 DSH 的模型选择器中选择 Qoder 模型,开始对话。
|
|
52
|
+
保存后,插件会拉取账号支持的模型列表,即可在 DSH 模型选择器中选用。
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
### 2. 查看账号与设置模型
|
|
61
55
|
|
|
62
|
-
|
|
56
|
+
打开 **设置 → Qoder** 查看账号额度,并可切换联网搜索策略与调整启用的模型:
|
|
63
57
|
|
|
64
58
|
<p align="center">
|
|
65
|
-
<img src="./assets/
|
|
59
|
+
<img src="./assets/account-quota_CN.png" alt="Qoder 账号额度与模型设置" width="650" />
|
|
66
60
|
</p>
|
|
67
61
|
|
|
68
|
-
|
|
62
|
+
## 后续计划
|
|
69
63
|
|
|
70
|
-
打开 **设置 → Qoder** 查看账号额度,并可按需切换联网搜索策略:
|
|
71
|
-
|
|
72
|
-
<p align="center">
|
|
73
|
-
<img src="./assets/account-quota.png" alt="Qoder 账号额度与搜索设置" width="650" />
|
|
74
|
-
</p>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## 后续计划功能
|
|
78
64
|
- [ ] 请求限流排队机制
|
|
79
65
|
- [ ] 接入 Qoder 的 Protobuf 协议
|
|
80
66
|
|
|
@@ -86,4 +72,6 @@ dsh plugin --profile web add dsh-provider-qoder
|
|
|
86
72
|
|
|
87
73
|
请通过 [GitHub Issues](https://github.com/mo-n/dsh-provider-qoder/issues) 提交问题,附上插件和 DSH 版本、所选服务区域、复现步骤及脱敏后的错误信息。不要提交 PAT、短期令牌或个人账号信息。
|
|
88
74
|
|
|
89
|
-
|
|
75
|
+
## 许可证
|
|
76
|
+
|
|
77
|
+
本项目基于 [MIT License](LICENSE) 开源。
|