From 1b7f89f69aba6f5639ec245836c771f05e6c07df Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Mon, 25 Nov 2024 00:36:38 +0100 Subject: [PATCH] Fix typing issue --- g4f/client/stubs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g4f/client/stubs.py b/g4f/client/stubs.py index 8e54e419f45..7367ac75d42 100644 --- a/g4f/client/stubs.py +++ b/g4f/client/stubs.py @@ -133,13 +133,13 @@ def model_construct(cls, url: str = None, b64_json: str = None, revised_prompt: )) class ImagesResponse(BaseModel): - data: list[Image] + data: List[Image] model: str provider: str created: int @classmethod - def model_construct(cls, data: list[Image], created: int = None, model: str = None, provider: str = None): + def model_construct(cls, data: List[Image], created: int = None, model: str = None, provider: str = None): if created is None: created = int(time()) return super().model_construct(