mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 17:23:57 +03:00
c617b18d12
Add AbstractProvider class Add ProviderType type Add get_last_provider function Add version module and VersionUtils Display used provider in gui Fix error response in api
23 lines
499 B
Python
23 lines
499 B
Python
import sys
|
|
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict, Type
|
|
|
|
if sys.version_info >= (3, 8):
|
|
from typing import TypedDict
|
|
else:
|
|
from typing_extensions import TypedDict
|
|
|
|
SHA256 = NewType('sha_256_hash', str)
|
|
CreateResult = Generator[str, None, None]
|
|
AsyncResult = AsyncGenerator[str, None]
|
|
Messages = List[Dict[str, str]]
|
|
|
|
__all__ = [
|
|
'Any',
|
|
'AsyncGenerator',
|
|
'Generator',
|
|
'Tuple',
|
|
'TypedDict',
|
|
'SHA256',
|
|
'CreateResult',
|
|
]
|