diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-25 00:36:38 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-25 00:36:38 +0100 |
commit | 1b7f89f69aba6f5639ec245836c771f05e6c07df (patch) | |
tree | 22d6dff7ef8af0b2e604619cfcecab27f4672e05 /g4f | |
parent | Improve error handling in api, Update openapi.json workflow (diff) | |
download | gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar.gz gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar.bz2 gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar.lz gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar.xz gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.tar.zst gpt4free-1b7f89f69aba6f5639ec245836c771f05e6c07df.zip |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/client/stubs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/client/stubs.py b/g4f/client/stubs.py index 8e54e419..7367ac75 100644 --- a/g4f/client/stubs.py +++ b/g4f/client/stubs.py @@ -133,13 +133,13 @@ class Image(BaseModel): )) 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( |