removed localhost hardcoding

This commit is contained in:
nicole pardal 2025-09-22 15:22:15 -07:00
parent e69184decf
commit d4e9af57af

View File

@ -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),