mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
removed localhost hardcoding
This commit is contained in:
parent
e69184decf
commit
d4e9af57af
@ -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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user