mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-03 03:40:12 +00:00
ea8d6b847a
Add image upload to OpenaiChat Add image response to OpenaiChat Improve ChatGPT Plus Support Remove unused requirements
25 lines
578 B
Python
25 lines
578 B
Python
import sys
|
|
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict, Type, IO
|
|
from PIL.Image import Image
|
|
|
|
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]]
|
|
ImageType = Union[str, bytes, IO, Image, None]
|
|
|
|
__all__ = [
|
|
'Any',
|
|
'AsyncGenerator',
|
|
'Generator',
|
|
'Tuple',
|
|
'TypedDict',
|
|
'SHA256',
|
|
'CreateResult',
|
|
]
|