@deepseek-ai/dsh-web-search-exa 0.1.5-rc.2 → 0.1.6-alpha.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.i18n.yaml +1 -1
- package/README.zh.md +4 -4
- package/package.json +7 -7
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/web/web-search-exa/README.md
|
|
5
5
|
README.md: 2bfa2a40adba5636abf599d2579ede961702c997
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 0511710df6aa2f0a57bafc91a17672bad7bc05fb
|
package/README.zh.md
CHANGED
|
@@ -29,7 +29,7 @@ kind: "package-reference"
|
|
|
29
29
|
|
|
30
30
|
### 何时选择
|
|
31
31
|
|
|
32
|
-
当部署持有 Exa API
|
|
32
|
+
当部署持有 Exa API 密钥,并希望使用 Exa 的关键词或神经搜索、获得每项结果的高亮 snippet 与发布日期时,选择此后端。密钥为空或端点基址无法解析时,提供方不可用——每次搜索调用都会以结构化错误失败。
|
|
33
33
|
|
|
34
34
|
### 最小配置
|
|
35
35
|
|
|
@@ -58,7 +58,7 @@ kind: "package-reference"
|
|
|
58
58
|
|
|
59
59
|
### 失败与恢复
|
|
60
60
|
|
|
61
|
-
提供方失败——HTTP 错误、网络失败、响应体无法解析或结构不符——以 `WebError` `WEB_PROVIDER_ERROR` 呈现;中止请求以 `WEB_ABORTED` 呈现。HTTP 重定向会在访问 `Location` 指向的目标之前被拒绝,并以 `WEB_PROVIDER_ERROR`
|
|
61
|
+
提供方失败——HTTP 错误、网络失败、响应体无法解析或结构不符——以 `WebError` `WEB_PROVIDER_ERROR` 呈现;中止请求以 `WEB_ABORTED` 呈现。HTTP 重定向会在访问 `Location` 指向的目标之前被拒绝,并以 `WEB_PROVIDER_ERROR` 呈现。调用方根据错误码进行分流;面向模型的 `web_search` 工具会在自己的错误包装层内把失败呈现给模型。
|
|
62
62
|
|
|
63
63
|
-----
|
|
64
64
|
|
|
@@ -84,7 +84,7 @@ kind: "package-reference"
|
|
|
84
84
|
| [`src/index.ts`](src/index.ts) | 插件入口:配置 schema、环境变量回退、提供方注册 |
|
|
85
85
|
| [`src/provider.ts`](src/provider.ts) | `ExaSearchProvider`:请求分发、中止分类、结果映射 |
|
|
86
86
|
| [`src/types.ts`](src/types.ts) | Exa 协议类型:`ExaSearchResponse`、`ExaResult`、`ExaError` |
|
|
87
|
-
| — |
|
|
87
|
+
| — | 不发布运行时不变量配套入口;除所属 seam 强制执行的约定外,本包没有独立的事件序列或可变数据关系。 |
|
|
88
88
|
|
|
89
89
|
### 请求与映射流程
|
|
90
90
|
|
|
@@ -111,7 +111,7 @@ kind: "package-reference"
|
|
|
111
111
|
<a id="model-experience"></a>
|
|
112
112
|
## 模型体验
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
通过 `dsh-tool-web` 间接影响模型体验。该工具保留本提供方经 `maxResults` 限制的 URL、标题、首条高亮与发布日期;如果发生失败,则会在消费方的错误包装层内保留原样错误消息 `Exa search aborted`、`Exa search request failed: <error>` 和 `Exa returned an unprocessable response body: <error>`。
|
|
115
115
|
|
|
116
116
|
#### KV Cache 影响
|
|
117
117
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-web-search-exa",
|
|
3
3
|
"description": "Exa-backed search provider for the DeepSeek Harness web capability seam (ctx.web)",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-
|
|
31
|
-
"@deepseek-ai/
|
|
32
|
-
"@deepseek-ai/
|
|
30
|
+
"@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
|
|
31
|
+
"@deepseek-ai/dsh-web": "^0.1.6-alpha.2",
|
|
32
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@deepseek-ai/dsh-launch-environment": "^0.1.
|
|
39
|
-
"@deepseek-ai/dsh-web": "^0.1.5-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
|
|
40
39
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
41
|
-
"@deepseek-ai/dsh-http-proxy": "^0.1.
|
|
40
|
+
"@deepseek-ai/dsh-http-proxy": "^0.1.6-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-web": "^0.1.6-alpha.2"
|
|
42
42
|
}
|
|
43
43
|
}
|