dsh-web-search-duck
学习研究 活跃维护

dsh-web-search-duck

r-ayin/dsh-web-search-duck

兼容OpenAI Responses API,将搜索预览工具无缝桥接至Web搜索层,开发者可通过标准接口直接调用实时网络搜索,无需额外适配即可集成进现有系统。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:r-ayin/dsh-web-search-duck
git clone https://github.com/r-ayin/dsh-web-search-duck.git
git clone git@github.com:r-ayin/dsh-web-search-duck.git
README.md main

dsh-web-search-duck

Web search provider for the DSH ctx.web seam. It bridges any OpenAI Responses-API-compatible endpoint that supports the web_search_preview tool: the query is sent to the endpoint, and url_citation annotations in the response are mapped to a concise answer plus deduplicated sources.

Registers search provider id duck-responses-search.

Configuration

env meaning default
DUCK_SEARCH_ENDPOINT Responses API endpoint URL required
DUCK_SEARCH_MODEL model name sent in the request required
DUCK_SEARCH_CREDENTIAL DSH credentials-store key used for Authorization: Bearer DSH_WEB_SEARCH_TOKEN

Without endpoint/model configured the provider throws a clear error instead of guessing.

Enable

Point the web seam at this provider in your host patch:

- id: web
  override:
    searchProvider: duck-responses-search

Install

Install it from the DSH Plugin Market (Settings → Plugin Market), or add it to your profile bundle stack manually — see cordis.patch.yml. Prebuilt; no build step required.

License

MIT