From d4e9af57afbd7bda3365e99d4d98f1e8ab34b15f Mon Sep 17 00:00:00 2001 From: nicole pardal Date: Mon, 22 Sep 2025 15:22:15 -0700 Subject: [PATCH] removed localhost hardcoding --- ollama/_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ollama/_client.py b/ollama/_client.py index 799da8a..d00f028 100644 --- a/ollama/_client.py +++ b/ollama/_client.py @@ -652,7 +652,7 @@ class Client(BaseClient): return self._request( WebSearchResponse, 'POST', - 'http://localhost:8080/api/web_search', + 'https://ollama.com/api/web_search', json=WebSearchRequest( query=query, max_results=max_results, @@ -675,7 +675,7 @@ class Client(BaseClient): return self._request( WebFetchResponse, 'POST', - 'http://localhost:8080/api/web_fetch', + 'https://ollama.com/api/web_fetch', json=WebFetchRequest( url=url, ).model_dump(exclude_none=True),