mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
New minimum requirements (#1515)
* New minimum requirements * Add ConversationStyleOptionSets to Bing * Add image.ImageRequest * Improve python version support * Improve unittests
This commit is contained in:
parent
71d71b6512
commit
feb83c168b
35 changed files with 471 additions and 284 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import sys
|
||||
from typing import Any, AsyncGenerator, Generator, NewType, Tuple, Union, List, Dict, Type, IO, Optional
|
||||
from PIL.Image import Image
|
||||
try:
|
||||
from PIL.Image import Image
|
||||
except ImportError:
|
||||
Image = type
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import TypedDict
|
||||
|
|
@ -11,6 +14,7 @@ SHA256 = NewType('sha_256_hash', str)
|
|||
CreateResult = Generator[str, None, None]
|
||||
AsyncResult = AsyncGenerator[str, None]
|
||||
Messages = List[Dict[str, str]]
|
||||
Cookies = List[Dict[str, str]]
|
||||
ImageType = Union[str, bytes, IO, Image, None]
|
||||
|
||||
__all__ = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue