[PR #14336] [MERGED] ui: use capability-based detection for web search #61324

Closed
opened 2026-04-29 16:24:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14336
Author: @hoyyeva
Created: 2/20/2026
Status: Merged
Merged: 2/23/2026
Merged by: @hoyyeva

Base: mainHead: hoyyeva/cloud-model-with-web-search


📝 Commits (2)

  • 6763f18 ui: use capability-based detection for web search
  • ff5c941 add tests

📊 Changes

4 files changed (+120 additions, -20 deletions)

View changed files

📝 app/ui/app/src/components/ChatForm.tsx (+5 -7)
📝 app/ui/app/src/hooks/useModelCapabilities.ts (+5 -0)
📝 app/ui/ui.go (+3 -13)
📝 app/ui/ui_test.go (+107 -0)

📄 Description

Summary

  • Replace hardcoded model name prefix checks (gpt-oss, qwen3, deepseek-v3) with the existing CapabilityTools capability detection, so any model with tool support automatically gets web search
  • Add useHasToolsCapability hook in the frontend (mirrors the existing useHasVisionCapability pattern)
  • Remove the now-unused supportsWebSearchTools() function from the backend

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14336 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 2/20/2026 **Status:** ✅ Merged **Merged:** 2/23/2026 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/cloud-model-with-web-search` --- ### 📝 Commits (2) - [`6763f18`](https://github.com/ollama/ollama/commit/6763f184af74ee51dd12235a7d8d6c5370c876cf) ui: use capability-based detection for web search - [`ff5c941`](https://github.com/ollama/ollama/commit/ff5c9414c0a2d94ab2dc0ad01c3ec02304ca2f0c) add tests ### 📊 Changes **4 files changed** (+120 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/components/ChatForm.tsx` (+5 -7) 📝 `app/ui/app/src/hooks/useModelCapabilities.ts` (+5 -0) 📝 `app/ui/ui.go` (+3 -13) 📝 `app/ui/ui_test.go` (+107 -0) </details> ### 📄 Description **Summary** - Replace hardcoded model name prefix checks (gpt-oss, qwen3, deepseek-v3) with the existing CapabilityTools capability detection, so any model with tool support automatically gets web search - Add useHasToolsCapability hook in the frontend (mirrors the existing useHasVisionCapability pattern) - Remove the now-unused supportsWebSearchTools() function from the backend --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:24:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61324