mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 19:11:48 +03:00
commit
73997bc4e7
@ -133,13 +133,13 @@ class Image(BaseModel):
|
|||||||
))
|
))
|
||||||
|
|
||||||
class ImagesResponse(BaseModel):
|
class ImagesResponse(BaseModel):
|
||||||
data: list[Image]
|
data: List[Image]
|
||||||
model: str
|
model: str
|
||||||
provider: str
|
provider: str
|
||||||
created: int
|
created: int
|
||||||
|
|
||||||
@classmethod
|
@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:
|
if created is None:
|
||||||
created = int(time())
|
created = int(time())
|
||||||
return super().model_construct(
|
return super().model_construct(
|
||||||
|
Loading…
Reference in New Issue
Block a user