From 7d411a468671ae59c1e5a32701f6ad1d735b12c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Daniel=20Ba=C3=B1ares?= Date: Wed, 14 Jan 2026 16:38:39 +0800 Subject: [PATCH] docs: update web search param in examples (#13711) --- docs/capabilities/web-search.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/capabilities/web-search.mdx b/docs/capabilities/web-search.mdx index 641ef3812..a6a5bf057 100644 --- a/docs/capabilities/web-search.mdx +++ b/docs/capabilities/web-search.mdx @@ -110,7 +110,7 @@ More Ollama [Python example](https://github.com/ollama/ollama-python/blob/main/e import { Ollama } from "ollama"; const client = new Ollama(); -const results = await client.webSearch({ query: "what is ollama?" }); +const results = await client.webSearch("what is ollama?"); console.log(JSON.stringify(results, null, 2)); ``` @@ -213,7 +213,7 @@ models](https://ollama.com/models)\n\nAvailable for macOS, Windows, and Linux', import { Ollama } from "ollama"; const client = new Ollama(); -const fetchResult = await client.webFetch({ url: "https://ollama.com" }); +const fetchResult = await client.webFetch("https://ollama.com"); console.log(JSON.stringify(fetchResult, null, 2)); ```