From 1d66c57a658d0a538c1836c56252aae2db11546d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A2=A7=E8=88=9E=E3=81=99=E3=81=BF=E3=81=BB?= Date: Sat, 18 May 2024 01:43:17 +0900 Subject: Improve compatibility of openai-node (#1966) * improve compatibility of openai-node * improve compatibility with OpenAI's models api * allow image upload --- g4f/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/typing.py') diff --git a/g4f/typing.py b/g4f/typing.py index 5d1bc959..710fde4b 100644 --- a/g4f/typing.py +++ b/g4f/typing.py @@ -14,7 +14,7 @@ else: SHA256 = NewType('sha_256_hash', str) CreateResult = Iterator[str] AsyncResult = AsyncIterator[str] -Messages = List[Dict[str, str]] +Messages = List[Dict[str, Union[str,List[Dict[str,Union[str,Dict[str,str]]]]]]] Cookies = Dict[str, str] ImageType = Union[str, bytes, IO, Image, None] -- cgit v1.2.3