dsh-provider-qoder 0.2.1 → 0.3.1
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 +9 -8
- package/README_CN.md +9 -8
- package/cordis.patch.yml +6 -1
- package/lib/client.js +421 -184
- package/lib/index.d.ts +116 -3
- package/lib/index.js +1125 -156
- package/package.json +22 -15
package/README.md
CHANGED
|
@@ -12,9 +12,8 @@ This project is a community adapter plugin.
|
|
|
12
12
|
- Configure subscription access via Qoder Personal Access Token (PAT).
|
|
13
13
|
- Supports both Global (`global`) and China (`china`) services.
|
|
14
14
|
- Discovers available models for your account, allows selecting enabled models, and displays pricing multipliers and reasoning effort options when reported by the service.
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- View account information, personal quota, organization resource packs, and reset dates in Settings.
|
|
15
|
+
- Supports streaming responses, reasoning content, multimodality, search, tool calls, and multi-turn interactions.
|
|
16
|
+
- View account information, quota, and reset dates in Settings.
|
|
18
17
|
|
|
19
18
|
## Installation
|
|
20
19
|
|
|
@@ -22,11 +21,11 @@ This project is a community adapter plugin.
|
|
|
22
21
|
|
|
23
22
|
You will need a running DSH Web environment, an active Qoder subscription, and a PAT matching the selected service region. 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.
|
|
24
23
|
|
|
25
|
-
This package
|
|
24
|
+
This package's dependency ranges are DSH packages `>=0.1.2-rc.1 <0.2`, Cordis `>=4.0.2 <5`, and React `^18.2.0`. The settings UI also depends on the host providing remote credential endpoints and settings slots—please use a DSH version equipped with these interfaces; the ranges above do not imply that every version has been tested.
|
|
26
25
|
|
|
27
26
|
### Install from npm
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
Run in your terminal:
|
|
30
29
|
|
|
31
30
|
```sh
|
|
32
31
|
dsh plugin --profile web add dsh-provider-qoder
|
|
@@ -43,7 +42,7 @@ Open DSH Web, navigate to **Settings → Models**, locate the **Qoder Credential
|
|
|
43
42
|
| Global (default) | `qoder.com` |
|
|
44
43
|
| China (CN) | `qoder.com.cn` |
|
|
45
44
|
|
|
46
|
-
Select the region matching your account, enter your Qoder PAT into the input box labeled **API Key**, and click **Save**.
|
|
45
|
+
Select the region matching your account, enter your Qoder PAT into the input box labeled **API Key**, and click **Save**.
|
|
47
46
|
|
|
48
47
|
### 2. Fetch and Select Models
|
|
49
48
|
|
|
@@ -52,11 +51,13 @@ Select the region matching your account, enter your Qoder PAT into the input box
|
|
|
52
51
|
3. Select the models you want to enable (keep at least one), then click **Save**.
|
|
53
52
|
4. Select a Qoder model in the DSH model picker to start chatting.
|
|
54
53
|
|
|
55
|
-
Fetching models uses the **saved PAT and service region**. If you switch accounts or regions,
|
|
54
|
+
Fetching models uses the **saved PAT and service region**. If you switch accounts or regions, you need to fetch models again. The initial model catalog is only a candidate reference; actual available models are subject to account query results. Model multipliers, reasoning effort options, and image-input capability are provided by Qoder and may not be available for all models.
|
|
55
|
+
|
|
56
|
+
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
57
|
|
|
57
58
|
### 3. View Account & Quota
|
|
58
59
|
|
|
59
|
-
Open **Settings → Qoder** to view account and quota details
|
|
60
|
+
Open **Settings → Qoder** to view account and quota details.
|
|
60
61
|
|
|
61
62
|
## FAQ
|
|
62
63
|
|
package/README_CN.md
CHANGED
|
@@ -12,9 +12,8 @@
|
|
|
12
12
|
- 通过 Qoder Personal Access Token(PAT,个人访问令牌)配置订阅访问。
|
|
13
13
|
- 支持国际版(`global`)和中国区(`china`)服务。
|
|
14
14
|
- 获取账号可用模型,选择启用的模型,并在服务返回相关信息时显示价格倍率和推理强度选项。
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- 在设置中查看账号信息、个人额度、组织资源包和重置时间。
|
|
15
|
+
- 支持流式回答、推理内容、多模态、搜索、工具调用及多轮交互。
|
|
16
|
+
- 在设置中查看账号信息、额度和重置时间。
|
|
18
17
|
|
|
19
18
|
## 安装
|
|
20
19
|
|
|
@@ -22,11 +21,11 @@
|
|
|
22
21
|
|
|
23
22
|
你需要可运行的 DSH Web 环境、可用的 Qoder 订阅,以及与所选服务区域匹配的 PAT。运行插件的 DSH profile 必须提供托管凭据服务;通过设置页面配置时,凭据存储还需可写。
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
本包的依赖范围为 DSH 相关包 `>=0.1.2-rc.1 <0.2`、Cordis `>=4.0.2 <5` 和 React `^18.2.0`。设置界面还依赖宿主提供凭据远程接口和设置插槽,请使用具备这些接口的 DSH 版本;上述范围不代表每个版本都经过实测。
|
|
26
25
|
|
|
27
26
|
### 从 npm 安装
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
在终端执行:
|
|
30
29
|
|
|
31
30
|
```sh
|
|
32
31
|
dsh plugin --profile web add dsh-provider-qoder
|
|
@@ -43,7 +42,7 @@ dsh plugin --profile web add dsh-provider-qoder
|
|
|
43
42
|
| 国际版(Global,默认) | `qoder.com` |
|
|
44
43
|
| 中国区(CN) | `qoder.com.cn` |
|
|
45
44
|
|
|
46
|
-
选择与账号一致的区域,将 Qoder PAT 填入界面标为 **API 密钥** 的输入框,然后点击
|
|
45
|
+
选择与账号一致的区域,将 Qoder PAT 填入界面标为 **API 密钥** 的输入框,然后点击 **保存**。
|
|
47
46
|
|
|
48
47
|
### 2. 获取并选择模型
|
|
49
48
|
|
|
@@ -52,11 +51,13 @@ dsh plugin --profile web add dsh-provider-qoder
|
|
|
52
51
|
3. 选择需要启用的模型,至少保留一个,然后点击 **保存**。
|
|
53
52
|
4. 在 DSH 的模型选择器中选择 Qoder 模型,开始对话。
|
|
54
53
|
|
|
55
|
-
获取模型使用的是**已保存的 PAT
|
|
54
|
+
获取模型使用的是**已保存的 PAT 和服务区域**。更换账号或区域后,需要重新获取模型。初始模型目录仅供候选参考,实际可用模型以账号查询结果为准。模型倍率、推理强度选项及图片输入能力由 Qoder 提供,并非所有模型都有这些信息。
|
|
55
|
+
|
|
56
|
+
展开模型选择器时会自动刷新已启用 Qoder 模型的元数据,成功获取后缓存 5 分钟。设置可写时,更新后的倍率和能力信息也会同步到**自定义设置**显示的已保存目录,不会自动启用其他模型。刷新失败时保留最近一次成功获取的信息。
|
|
56
57
|
|
|
57
58
|
### 3. 查看账号与额度
|
|
58
59
|
|
|
59
|
-
打开 **设置 → Qoder**
|
|
60
|
+
打开 **设置 → Qoder** 查看账号和额度。
|
|
60
61
|
|
|
61
62
|
## 常见问题
|
|
62
63
|
|