dsh-plugin-ai-baistone
Verifieddsh-plugin-ai-baistone · v0.1.0 · MIT · Web UI
AI百事通:右侧边栏�? AI 对话框,默认使用 DeepSeek API 流式问答 (AI chat panel in the right sidebar, streaming Q&A through the DeepSeek API by default)
Install
dsh plugin add dsh-plugin-ai-baistone Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Creators
Readme
AI百事通(dsh-plugin-ai-baistone)
在 DeepSeek Harness Web GUI 的右侧边栏添加一个 AI 对话框 —— AI百事通,默认通过 DeepSeek API 进行流式问答。
功能
- 右侧边栏聊天面板:通过右侧栏「+」添加控件的指南页打开(首次安装后自动打开一次),也可点击左侧栏底部的 ✨ 启动器随时打开。
- 流式问答:直接调用 DeepSeek API(SSE 流式输出),默认模型
deepseek-flash,另可选deepseek-chat与deepseek-reasoner(推理模型的思考过程单独展示)。 - 多轮上下文:对话历史保存在本机 localStorage,刷新页面不丢失;一键清空。
- 可配置:API Key、接口地址(任意 OpenAI 兼容端点)、模型、系统提示词、采样温度,均可在「设置 → AI百事通」中修改,支持一键测试连接。
- 中英文界面:跟随 GUI 语言自动切换。
使用
- 安装并启用本 bundle 后,右侧边栏会出现「AI百事通」标签页。
- 首次使用请在面板顶部横幅(或设置页)粘贴 DeepSeek 开放平台 的 API Key(
sk-...)。Key 仅保存在本机浏览器。 - 输入问题,Enter 发送,Shift+Enter 换行;生成中可随时停止。
技术说明
- 纯浏览器插件:Host 半(
index.js)为空实现,所有逻辑在client.js。 - DeepSeek API 对 Web shell 源开放了 CORS,因此浏览器可直接流式调用,无需 Host 代理。
- 右侧栏集成遵循
@deepseek-ai/dsh-client-ui-sidebar-right的两段式注册:先ctx.sidebarRightTabs.register({ id, kind, guide })声明页类型,再向sidebar.right.pane.tab按id注册 Body 组件。 - 界面仅使用
--dsw-*主题语义令牌,明暗主题均适用。