Skip to content

Commit

Permalink
pydantic types
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Sep 18, 2024
1 parent 61c8d0d commit 5f4496e
Show file tree
Hide file tree
Showing 7 changed files with 1,209 additions and 638 deletions.
34 changes: 18 additions & 16 deletions ollama/__init__.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
from ollama._client import Client, AsyncClient
from ollama._types import (
Options,
Message,
Tool,
GenerateResponse,
ChatResponse,
EmbedResponse,
EmbeddingsResponse,
StatusResponse,
ProgressResponse,
Message,
Options,
ListResponse,
ShowResponse,
ProcessResponse,
RequestError,
ResponseError,
)

__all__ = [
'Client',
'AsyncClient',
'Options',
'Message',
'Tool',
'GenerateResponse',
'ChatResponse',
'EmbedResponse',
'EmbeddingsResponse',
'StatusResponse',
'ProgressResponse',
'Message',
'Options',
'ListResponse',
'ShowResponse',
'ProcessResponse',
'RequestError',
'ResponseError',
'generate',
'chat',
'embed',
'embeddings',
'pull',
'push',
'create',
'delete',
'list',
'copy',
'show',
'ps',
]

_client = Client()
Expand Down
Loading

0 comments on commit 5f4496e

Please sign in to comment.