feat: change onRequest to onCall

This commit is contained in:
Zitao Xiong
2023-12-12 14:55:04 +08:00
parent fde1898f2d
commit 78000d3cd7
3 changed files with 88 additions and 102 deletions

View File

@@ -1,3 +1,3 @@
export type CloudFunctionsType = {
generateImage(prompt: string): Promise<{ url: string; finalPrompt: string }>;
generateImage(prompt: string): Promise<{ image_url: string, revised_prompt: string }>;
};