fatatalia/dsh-ollama-web-search ↗★ 0
dsh-ollama-web-search
Ollama 云 web_search provider:web_search 工具直连 ollama.com/api/web_search(原生搜索 API,返回 {results:[{title,url,content}]}),转成 dsh 的 sources 格式。替代 DeepSeek 官方搜索,无需本地 Ollama/中间件,无模型开销。 适合需要直连Ollama云搜索API、无需本地部署Ollama或搜索中间件的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fatatalia/dsh-ollama-web-searchドキュメント
README 全文を読む ↗配置
凭据:~/.dsh/.credentials.yaml 或环境变量 OLLAMA_API_KEY(与 ollama 模型 provider 共用)。
可选的 settings 段(~/.dsh/settings.yaml):
ollama-web-search:
apiKeyEnv: OLLAMA_API_KEY # 凭据引用
baseURL: https://ollama.com/api/web_search # 搜索端点
maxResults: 5 # 默认返回结果数上限