ollama-python/ollama/__init__.py
Parth Sareen 4d0b81b37a
Some checks are pending
test / test (push) Waiting to run
test / lint (push) Waiting to run
client: add web search and web crawl capabilities (#578)
2025-09-18 16:51:20 -07:00

60 lines
1.0 KiB
Python

from ollama._client import AsyncClient, Client
from ollama._types import (
ChatResponse,
EmbeddingsResponse,
EmbedResponse,
GenerateResponse,
Image,
ListResponse,
Message,
Options,
ProcessResponse,
ProgressResponse,
RequestError,
ResponseError,
ShowResponse,
StatusResponse,
Tool,
WebCrawlResponse,
WebSearchResponse,
)
__all__ = [
'AsyncClient',
'ChatResponse',
'Client',
'EmbedResponse',
'EmbeddingsResponse',
'GenerateResponse',
'Image',
'ListResponse',
'Message',
'Options',
'ProcessResponse',
'ProgressResponse',
'RequestError',
'ResponseError',
'ShowResponse',
'StatusResponse',
'Tool',
'WebCrawlResponse',
'WebSearchResponse',
]
_client = Client()
generate = _client.generate
chat = _client.chat
embed = _client.embed
embeddings = _client.embeddings
pull = _client.pull
push = _client.push
create = _client.create
delete = _client.delete
list = _client.list
copy = _client.copy
show = _client.show
ps = _client.ps
websearch = _client.web_search
webcrawl = _client.web_crawl