feat: support multi-image image generation
This commit is contained in:
@@ -82,6 +82,7 @@ class ImageGenerationResult:
|
||||
class MultimodalImage:
|
||||
data: bytes
|
||||
mime_type: str = "image/png"
|
||||
filename: str = "image.png"
|
||||
|
||||
|
||||
class Provider(Protocol):
|
||||
@@ -108,6 +109,7 @@ class Provider(Protocol):
|
||||
image: bytes | None = None,
|
||||
image_mime_type: str = "image/png",
|
||||
image_filename: str = "image.png",
|
||||
images: Sequence[MultimodalImage] | None = None,
|
||||
resolution: str = "1K",
|
||||
aspect_ratio: str = "1:1",
|
||||
parameters: Mapping[str, Any] | None = None,
|
||||
|
||||
Reference in New Issue
Block a user