Skip to content

Commit

Permalink
Fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Nov 24, 2024
1 parent c57321e commit 1b7f89f
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 1b7f89f

Please sign in to comment.