Skip to content

Commit 96abe39

Browse files
committed
feat: add image generation adapter class
1 parent 6a5d5f3 commit 96abe39

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
@@ -28,6 +28,21 @@ export interface CompletionAdapter {
2828
}>;
2929
}
3030

31+
export interface ImageGenerationAdapter {
32+
33+
validate(): void;
34+
35+
generate(
36+
prompt: string,
37+
inputFiles: string[],
38+
): Promise<{
39+
imageURL?: string;
40+
error?: string;
41+
}>;
42+
}
43+
44+
45+
3146
export interface OAuth2Adapter {
3247
getAuthUrl(): string;
3348
getTokenFromCode(code: string, redirect_uri: string): Promise<{ email: string }>;

0 commit comments

Comments
 (0)