Skip to content

feat(web-search): add ollama web search provider support #907#930

Merged
lyingbug merged 1 commit intoTencent:mainfrom
jhao0413:main
Apr 9, 2026
Merged

feat(web-search): add ollama web search provider support #907#930
lyingbug merged 1 commit intoTencent:mainfrom
jhao0413:main

Conversation

@jhao0413
Copy link
Copy Markdown
Contributor

@jhao0413 jhao0413 commented Apr 9, 2026

Pull Request

描述 (Description)

接入 Ollama Cloud 官方 Web Search API 作为新的网络搜索提供商。

变更类型 (Type of Change)

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • 💥 破坏性变更 (Breaking change)
  • 📚 文档更新 (Documentation update)
  • 🎨 代码重构 (Code refactoring)
  • ⚡ 性能优化 (Performance improvement)
  • 🧪 测试相关 (Test related)
  • 🔧 配置变更 (Configuration change)
  • 🐳 Docker 相关 (Docker related)
  • 🎨 前端 UI/UX (Frontend UI/UX)

影响范围 (Scope)

  • 后端 API (Backend API)
  • 前端界面 (Frontend UI)
  • 数据库 (Database)
  • 文档解析服务 (Document Reader Service)
  • MCP 服务器 (MCP Server)
  • Docker 配置 (Docker Configuration)
  • 配置文件 (Configuration)
  • 其他 (Other):

测试 (Testing)

  • 单元测试 (Unit tests)
  • 集成测试 (Integration tests)
  • 手动测试 (Manual testing)
  • 前端测试 (Frontend testing)
  • API 测试 (API testing)

测试步骤 (Test Steps)

  1. 在设置页面添加新的网络搜索提供商,选择 "Ollama Web Search"。
  2. 输入有效的 Ollama API Key。
  3. 点击测试连接,并保存配置。
  4. 在对话输入框中确认网络搜索图标状态正常显示。
  5. 发起带有联网搜索需求的提问,验证搜索结果。

检查清单 (Checklist)

  • 代码遵循项目的编码规范
  • 已进行自我代码审查
  • 代码变更已添加适当的注释
  • 相关文档已更新
  • 变更不会产生新的警告
  • 已添加测试用例证明修复有效或功能正常
  • 新功能和变更已更新到相关文档
  • 破坏性变更已在描述中明确说明

相关 Issue

Feature #907

截图/录屏 (Screenshots/Recordings)

image

数据库迁移 (Database Migration)

  • 需要数据库迁移
  • 不需要数据库迁移

配置变更 (Configuration Changes)

部署说明 (Deployment Notes)

其他信息 (Additional Information)

@lyingbug lyingbug merged commit fd18264 into Tencent:main Apr 9, 2026
1 check passed
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.

2 participants