Skip to content

Commit 0bbc246

Browse files
committed
pydantic types
1 parent a757142 commit 0bbc246

File tree

7 files changed

+1207
-636
lines changed

7 files changed

+1207
-636
lines changed

ollama/__init__.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
from ollama._client import Client, AsyncClient
22
from ollama._types import (
3+
Options,
4+
Message,
5+
Tool,
36
GenerateResponse,
47
ChatResponse,
8+
EmbedResponse,
9+
EmbeddingsResponse,
10+
StatusResponse,
511
ProgressResponse,
6-
Message,
7-
Options,
12+
ListResponse,
13+
ShowResponse,
14+
ProcessResponse,
815
RequestError,
916
ResponseError,
1017
)
1118

1219
__all__ = [
1320
'Client',
1421
'AsyncClient',
22+
'Options',
23+
'Message',
24+
'Tool',
1525
'GenerateResponse',
1626
'ChatResponse',
27+
'EmbedResponse',
28+
'EmbeddingsResponse',
29+
'StatusResponse',
1730
'ProgressResponse',
18-
'Message',
19-
'Options',
31+
'ListResponse',
32+
'ShowResponse',
33+
'ProcessResponse',
2034
'RequestError',
2135
'ResponseError',
22-
'generate',
23-
'chat',
24-
'embed',
25-
'embeddings',
26-
'pull',
27-
'push',
28-
'create',
29-
'delete',
30-
'list',
31-
'copy',
32-
'show',
33-
'ps',
3436
]
3537

3638
_client = Client()

0 commit comments

Comments
 (0)