Skip to content

Commit 45f31f1

Browse files
committed
fix: image generation adapter to return imageURLs and improve params
1 parent 2a2d9e1 commit 45f31f1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

adminforth/types/Adapters.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ export interface ImageGenerationAdapter {
4747
*/
4848
inputFileExtensionSupported(): string[];
4949

50-
generate(
50+
generate({
51+
prompt,
52+
inputFiles,
53+
n,
54+
size,
55+
}: {
5156
prompt: string,
5257
inputFiles: string[],
5358

@@ -56,8 +61,8 @@ export interface ImageGenerationAdapter {
5661

5762
// one by default
5863
n: number
59-
): Promise<{
60-
imageURL?: string[];
64+
}): Promise<{
65+
imageURLs?: string[];
6166
error?: string;
6267
}>;
6368
}

0 commit comments

Comments
 (0)