Skip to content

Commit a43ac84

Browse files
committed
removed localhost hardcoding
1 parent de60401 commit a43ac84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ollama/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def web_search(self, query: str, max_results: int = 3) -> WebSearchResponse:
642642
return self._request(
643643
WebSearchResponse,
644644
'POST',
645-
'http://localhost:8080/api/web_search',
645+
'https://ollama.com/api/web_search',
646646
json=WebSearchRequest(
647647
query=query,
648648
max_results=max_results,
@@ -662,7 +662,7 @@ def web_fetch(self, url: str) -> WebFetchResponse:
662662
return self._request(
663663
WebFetchResponse,
664664
'POST',
665-
'http://localhost:8080/api/web_fetch',
665+
'https://ollama.com/api/web_fetch',
666666
json=WebFetchRequest(
667667
url=url,
668668
).model_dump(exclude_none=True),

0 commit comments

Comments
 (0)