Moved moodels to their own file and extracted base64 conversion to its own function
parent
1b4d04737a
commit
b02926df13
@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel, Field, Json
|
||||
|
||||
class TextToImageResponse(BaseModel):
|
||||
images: list[str] = Field(default=None, title="Image", description="The generated image in base64 format.")
|
||||
parameters: Json
|
||||
info: Json
|
||||
|
||||
|
||||
Loading…
Reference in New Issue