[PR #14787] [MERGED] middleware: enable local tool model for web search #20108

Closed
opened 2026-04-16 07:26:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14787
Author: @hoyyeva
Created: 3/11/2026
Status: Merged
Merged: 3/11/2026
Merged by: @hoyyeva

Base: mainHead: hoyyeva/local-model-web-search


📝 Commits (1)

  • a85b62d middleware: enable local tool model for web search

📊 Changes

2 files changed (+44 additions, -18 deletions)

View changed files

📝 middleware/anthropic.go (+0 -9)
📝 middleware/anthropic_test.go (+44 -9)

📄 Description

This PR

  • Removed the cloud-model-only guard for web search in middleware/anthropic.go, allowing local
    models with tool support to execute web searches.

  • Updated the test to verify local models can complete the full web search flow instead of receiving a
    blocked error.


🔄 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/14787 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 3/11/2026 **Status:** ✅ Merged **Merged:** 3/11/2026 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/local-model-web-search` --- ### 📝 Commits (1) - [`a85b62d`](https://github.com/ollama/ollama/commit/a85b62db0a0a822faa9871a0b5cd1cc4a8f7fdf7) middleware: enable local tool model for web search ### 📊 Changes **2 files changed** (+44 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `middleware/anthropic.go` (+0 -9) 📝 `middleware/anthropic_test.go` (+44 -9) </details> ### 📄 Description This PR * Removed the cloud-model-only guard for web search in `middleware/anthropic.go`, allowing local models with tool support to execute web searches. * Updated the test to verify local models can complete the full web search flow instead of receiving a blocked error. --- <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-16 07:26:52 -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#20108