Skip to content

Commit 3177483

Browse files
committed
fix: image generation addapter support for several images output, also pass size and n
1 parent 758c932 commit 3177483

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

adminforth/types/Adapters.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@ export interface ImageGenerationAdapter {
5050
generate(
5151
prompt: string,
5252
inputFiles: string[],
53+
54+
// default = lowest dimension supported
55+
size: string,
56+
57+
// one by default
58+
n: number
5359
): Promise<{
54-
imageURL?: string;
60+
imageURL?: string[];
5561
error?: string;
5662
}>;
5763
}

0 commit comments

Comments
 (0)