dsh-provider-qoder 0.2.0 → 0.3.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 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
- - Sends DSH image attachments to models advertised by Qoder as vision-language models, including images returned by tools. Images are published to the Qoder center service and referenced by URL to keep requests small; if publication fails, the image is sent inline instead so the turn still completes.
16
- - Supports streaming responses, reasoning content, tool calls, and multi-turn interactions.
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 declares peer/dependency ranges of 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.
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
- Once published to npm, run the following in your terminal:
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**. Note that a Qoder PAT is required here, not an API key from other model providers.
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, save your changes first before fetching 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.
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.
56
57
 
57
58
  ### 3. View Account & Quota
58
59
 
59
- Open **Settings → Qoder** to view account and quota details, and click **Refresh** to query again. The absence of quota information does not mean zero quota; displayed content depends on data currently returned by Qoder.
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
- - 将 DSH 图片附件发送给 Qoder 标记为视觉语言模型的模型,同时支持工具返回的图片。图片会先上传到 Qoder 中心端服务并以 URL 引用,从而避免请求体膨胀;若上传失败,则自动改为内联发送,保证本轮对话仍可完成。
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
- 本包声明的依赖范围为 DSH 相关包 `>=0.1.2-rc.1 <0.2`、Cordis `>=4.0.2 <5` 和 React `^18.2.0`。设置界面还依赖宿主提供凭据远程接口和设置插槽,请使用具备这些接口的 DSH 版本;上述范围不代表每个版本都经过实测。
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
- 发布到 npm 后,在终端执行:
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 密钥** 的输入框,然后点击 **保存**。这里需要的是 Qoder PAT,不是其他模型服务的 API Key。
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 和服务区域**。更换账号或区域后,请先保存,再重新获取模型。初始模型目录仅供候选参考,实际可用模型以账号查询结果为准。模型倍率、推理强度选项及图片输入能力由 Qoder 提供,并非所有模型都有这些信息。
54
+ 获取模型使用的是**已保存的 PAT 和服务区域**。更换账号或区域后,需要重新获取模型。初始模型目录仅供候选参考,实际可用模型以账号查询结果为准。模型倍率、推理强度选项及图片输入能力由 Qoder 提供,并非所有模型都有这些信息。
55
+
56
+ 展开模型选择器时会自动刷新已启用 Qoder 模型的元数据,成功获取后缓存 5 分钟。
56
57
 
57
58
  ### 3. 查看账号与额度
58
59
 
59
- 打开 **设置 → Qoder** 查看账号和额度,点击 **刷新** 重新查询。没有额度信息不代表额度为零;显示内容取决于 Qoder 当前返回的数据。
60
+ 打开 **设置 → Qoder** 查看账号和额度。
60
61
 
61
62
  ## 常见问题
62
63
 
package/cordis.patch.yml CHANGED
@@ -2,3 +2,8 @@
2
2
  - insert:
3
3
  - id: qoder-subscription
4
4
  name: 'dsh-provider-qoder'
5
+
6
+ - id: web
7
+ config:
8
+ searchProvider: qoder
9
+