gpt4free/g4f/typing.py
abc 64fe0ee487 ~ | g4f v-0.1.5.6
gui & interference can now be run with:

python -m g4f.gui.run

and

python -m g4f.interference.run
2023-10-08 13:31:46 +01:00

23 lines
493 B
Python

import sys
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict
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',
]