Skip to content

Commit

Permalink
Merge pull request #2418 from hlohaus/arm3
Browse files Browse the repository at this point in the history
Fix typing issue
  • Loading branch information
hlohaus authored Nov 24, 2024
2 parents 2fb0163 + 1b7f89f commit 73997bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g4f/client/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 73997bc

Please sign in to comment.