@morlay/dsh-web-search-ollama 0.0.6 → 0.0.8
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 +5 -6
- package/dist/client.cjs +0 -15663
- package/dist/client.d.cts +2 -1
- package/dist/client.d.mts +2 -1
- package/dist/client.mjs +51 -0
- package/dist/index.cjs +191 -0
- package/dist/index.d.mts +2 -2
- package/dist/rows.cjs +10 -0
- package/package.json +23 -16
- package/src/client/index.ts +0 -2
- package/dist/index.d.cts +0 -56
- package/dist/rows.d.cts +0 -12
package/README.md
CHANGED
|
@@ -21,15 +21,14 @@
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
配置四个字段:`apiKey`(字面 key)、`apiKeyEnv`(凭证引用,默认 `OLLAMA_API_KEY`)、`baseURL`(默认
|
|
24
|
-
`https://ollama.com`)、`maxResults
|
|
24
|
+
`https://ollama.com`)、`maxResults`;四个都可实时改,不用重挂这一行。
|
|
25
25
|
|
|
26
|
-
上游的 Anthropic Messages 后端在 Ollama
|
|
27
|
-
|
|
28
|
-
[设计 Ollama 搜索后端](./.agents/designs/20260929-ollama搜索后端.md)。
|
|
26
|
+
上游的 Anthropic Messages 后端在 Ollama 上不成立,所以本包直接接 Ollama 的 REST——原因、结果映射、错误面与字段
|
|
27
|
+
边界见[设计 Ollama 搜索后端](./.agents/designs/20260929-ollama搜索后端.md)。
|
|
29
28
|
|
|
30
29
|
## 装配
|
|
31
30
|
|
|
32
31
|
注册行由本包的 `./rows` 出口给出,采用它的部署 bundle 是
|
|
33
32
|
[`@morlay/ollama-provider-profile`](../../bundles/ollama-provider-profile/README.md):它渲染 patch,并在同一份 patch
|
|
34
|
-
里给 `web` 行的 `searchProvider: ollama` 与 key 引用。注册行在 host
|
|
35
|
-
`WEB_DUPLICATE_PROVIDER
|
|
33
|
+
里给 `web` 行的 `searchProvider: ollama` 与 key 引用。注册行在 host 平面只装一次(同一个 provider id 注册两次会撞
|
|
34
|
+
`WEB_DUPLICATE_PROVIDER`)。
|