Skip to content

Commit 2e3bc3b

Browse files
committed
fix: add constraints into ImageGenerationAdapter
1 parent 84f317c commit 2e3bc3b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

adminforth/types/Adapters.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ export interface ImageGenerationAdapter {
3232

3333
validate(): void;
3434

35+
/**
36+
* Return 1 or Infinity if the adapter supports multiple images
37+
*/
38+
outputImagesCountSupported(): number;
39+
40+
/**
41+
* Return the list of supported dimensions in format ["100x500", "200x200"]
42+
*/
43+
outputDimensionsSupported(): string[];
44+
45+
/**
46+
* Input file extension supported
47+
*/
48+
inputFileExtensionSupported(prompt: string, inputFiles: string[]): string[];
49+
3550
generate(
3651
prompt: string,
3752
inputFiles: string[],

0 commit comments

Comments
 (0)