[PR #13711] [MERGED] docs: update web search param in examples #40230

Closed
opened 2026-04-23 01:10:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13711
Author: @joshxfi
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @ParthSareen

Base: mainHead: fix/web-search-incorrect-example


📝 Commits (1)

  • 9474594 docs: update web search param in examples

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 docs/capabilities/web-search.mdx (+2 -2)

📄 Description

this pr updates the example docs in https://docs.ollama.com/capabilities/web-search

both functions client.webSearch & client.webFetch accepts a string as a param and not an object.

+ client.webSearch("what is ollama?");
- client.webSearch({ query: "what is ollama?" });
+ client.webFetch("https://ollama.com");
- client.webFetch({ url: "https://ollama.com" });

reference: https://github.com/ollama/ollama-js


🔄 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/13711 **Author:** [@joshxfi](https://github.com/joshxfi) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `fix/web-search-incorrect-example` --- ### 📝 Commits (1) - [`9474594`](https://github.com/ollama/ollama/commit/9474594815e49ad15e780deb26a70a8f37c8dc89) docs: update web search param in examples ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/capabilities/web-search.mdx` (+2 -2) </details> ### 📄 Description > this pr updates the example docs in https://docs.ollama.com/capabilities/web-search both functions [`client.webSearch`](https://github.com/ollama/ollama-js?tab=readme-ov-file#web-search) & [`client.webFetch`](https://github.com/ollama/ollama-js?tab=readme-ov-file#web-fetch) accepts a string as a param and not an object. ```diff + client.webSearch("what is ollama?"); - client.webSearch({ query: "what is ollama?" }); ``` ```diff + client.webFetch("https://ollama.com"); - client.webFetch({ url: "https://ollama.com" }); ``` reference: https://github.com/ollama/ollama-js --- <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-23 01:10:46 -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#40230