fix generations reponse body (#3094)
Signed-off-by: hx02481871@antgroup.com <hx02481871@antgroup.com> Co-authored-by: hx02481871@antgroup.com <hx02481871@antgroup.com>
This commit is contained in:
1 parent
8e9b497387
commit
9a1270e6cc
2 files changed
+22
-6
No files matched your search
@@ -139,6 +139,12 @@ class ImageGenerationRequest(BaseModel):
|
||||
vae_use_slicing: bool | None = Field(default=False, description="Enable VAE slicing")
|
||||
vae_use_tiling: bool | None = Field(default=False, description="Enable VAE tiling")
|
||||
|
||||
# Output format for generated images
|
||||
output_format: str | None = Field(
|
||||
default=None,
|
||||
description="Output image format: 'png', 'jpeg', or 'webp'. Defaults to 'png'.",
|
||||
)
|
||||
|
||||
|
||||
class ImageData(BaseModel):
|
||||
"""Single generated image data"""
|
||||
|
||||
Reference in new issue
Block a user