Create types.py

This commit is contained in:
H Lohaus 2024-04-06 20:31:13 +02:00 committed by GitHub
parent 22b7628b6c
commit 366969f501
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
g4f/client/types.py Normal file
View File

@ -0,0 +1,5 @@
from ..providers.types import BaseProvider, ProviderType
from typing import Union, Iterator
ImageProvider = Union[BaseProvider, object]
Proxies = Union[dict, str]
IterResponse = Iterator[Union[ChatCompletion, ChatCompletionChunk]]