Skip to content

Commit 16c442d

Browse files
committed
fix: support output size
1 parent f6d7d94 commit 16c442d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t
531531
prompt,
532532
inputFiles: attachmentFiles,
533533
n: 1,
534+
size: this.options.generation.outputSize,
534535
}
535536
)
536537

types.ts

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ export type PluginOptions = {
118118
generation?: {
119119
adapter: ImageGenerationAdapter,
120120

121+
/**
122+
* The size of the generated image.
123+
*/
124+
outputSize?: string,
121125

122126
/**
123127
* Fields for conetext which will be used to generate the image.

0 commit comments

Comments
 (0)