[PR #12471] routes/client: add web search and fetch #12568

Open
opened 2025-11-12 16:39:06 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12471
Author: @ParthSareen
Created: 10/1/2025
Status: 🔄 Open

Base: mainHead: parth/add-websearch-client


📝 Commits (4)

📊 Changes

5 files changed (+405 additions, -4 deletions)

View changed files

📝 api/client.go (+18 -0)
📝 api/client_test.go (+132 -0)
📝 api/types.go (+34 -0)
📝 server/routes.go (+115 -3)
📝 server/routes_test.go (+106 -1)

📄 Description

  • adds web search and web fetch to client following docs.ollama.com/web-search
  • it'll return a signin_url similar to others when unauthorized

🔄 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/12471 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 10/1/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `parth/add-websearch-client` --- ### 📝 Commits (4) - [`f88174c`](https://github.com/ollama/ollama/commit/f88174c55de565d3092aeff80a531c1bba37c049) routes/client: add web search and fetch - [`03e1d64`](https://github.com/ollama/ollama/commit/03e1d64aac44d62e6fead40bdf93eae57bae25a7) add tests - [`4f45f39`](https://github.com/ollama/ollama/commit/4f45f39bc605288ccc6875a22d7d94046bbca55c) remove auth for tests - [`b91c1f6`](https://github.com/ollama/ollama/commit/b91c1f67496d9b5b47fdab04a0d8a8cdebd8e243) update tests ### 📊 Changes **5 files changed** (+405 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+18 -0) 📝 `api/client_test.go` (+132 -0) 📝 `api/types.go` (+34 -0) 📝 `server/routes.go` (+115 -3) 📝 `server/routes_test.go` (+106 -1) </details> ### 📄 Description - adds web search and web fetch to client following [docs.ollama.com/web-search](https://docs.ollama.com/web-search#web-fetch-api) - it'll return a `signin_url` similar to others when unauthorized --- <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 2025-11-12 16:39:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12568