Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16c442d

Browse filesBrowse files
committed
fix: support output size
1 parent f6d7d94 commit 16c442d
Copy full SHA for 16c442d

File tree

2 files changed

+5
-0
lines changed
Filter options

2 files changed

+5
-0
lines changed

‎index.ts

Copy file name to clipboardExpand all lines: index.ts
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: types.ts
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.