We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a5d5f3 commit 96abe39Copy full SHA for 96abe39
1 file changed
adminforth/types/Adapters.ts
@@ -28,6 +28,21 @@ export interface CompletionAdapter {
28
}>;
29
}
30
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
46
export interface OAuth2Adapter {
47
getAuthUrl(): string;
48
getTokenFromCode(code: string, redirect_uri: string): Promise<{ email: string }>;
0 commit comments