From 16c442d38aef974ba5eabb619d4aabc83c4ed1e9 Mon Sep 17 00:00:00 2001 From: Ivan Borshchov Date: Tue, 29 Apr 2025 09:59:39 +0000 Subject: [PATCH] fix: support output size --- index.ts | 1 + types.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/index.ts b/index.ts index d667e1a..5c824c6 100644 --- a/index.ts +++ b/index.ts @@ -531,6 +531,7 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t prompt, inputFiles: attachmentFiles, n: 1, + size: this.options.generation.outputSize, } ) diff --git a/types.ts b/types.ts index a0c369a..e2e2d22 100644 --- a/types.ts +++ b/types.ts @@ -118,6 +118,10 @@ export type PluginOptions = { generation?: { adapter: ImageGenerationAdapter, + /** + * The size of the generated image. + */ + outputSize?: string, /** * Fields for conetext which will be used to generate the image.