Moved moodels to their own file and extracted base64 conversion to its own function
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user