Skip to content

feat: add Bing free web search provider#172

Open
YSMsimon wants to merge 3 commits into
mainfrom
feat/free-websearch
Open

feat: add Bing free web search provider#172
YSMsimon wants to merge 3 commits into
mainfrom
feat/free-websearch

Conversation

@YSMsimon
Copy link
Copy Markdown
Collaborator

变更说明 / Summary

新增 Bing 免费网络搜索后端,无需 API Key 开箱即用。用户可在设置面板的 Web Search 区域选择搜索提供商:Tavily(需要 Key,质量更高)或 Bing(无需 Key)。Bing 使用 RSS 端点(?format=rss)而非 HTML 抓取,规避了 bot 检测问题,结果稳定可靠。原有 Tavily 功能完全保留,无破坏性变更。

变更类型 / Type of change

  • Bug 修复
  • [x ] 新功能
  • 重构 / 性能优化
  • 文档 / 注释
  • CI / 构建脚本
  • 其他:

影响范围 / Affected areas

  • src/api/**(DeepSeek 接入)
  • src/chat/**(对话核心)
  • src/tools/**(工具执行,安全敏感)
  • [x ] src/webview/**(UI)
  • src/prompts/**
  • [x ] package.json / 依赖
  • CI / .github/**
  • 其他:

自检 / Checklist

  • [x ] 本地手动跑过受影响功能
  • [x ] 没有引入新的安全风险(密钥、命令注入、路径穿越)
  • [x ] 没有写入个人 / 测试用 API key
  • [x ] 修改的 webview 资源遵守了 CSP
  • 必要时已更新 README / Release Notes

截图 / 录屏(可选)

关联 Issue

Closes #129

@YSMsimon YSMsimon requested a review from ZhouChaunge as a code owner May 27, 2026 03:26
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

Comment thread media/chat.js
Comment thread media/chat.js
Comment thread media/chat.js
Comment thread media/chat.js
Comment thread package.json
Comment thread src/chat/provider.js
Comment thread src/tools/web-search.js
Comment thread src/tools/web-search.js
Comment thread src/tools/web-search.js
Comment thread src/webview/html.js
Comment thread src/tools/web-search.js Fixed
…nescaping'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

Comment thread src/tools/web-search.js
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

Comment thread src/chat/provider.js
@YSMsimon
Copy link
Copy Markdown
Collaborator Author

@ZhouChaunge 代码已测试正常,可以合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 添加免 API Key 的 Web Search 支持

2 participants