mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-28 16:40:20 +09:00
chore: modify the plug-in return
This commit is contained in:
parent
2e8c90fb21
commit
30f9dc756a
@ -119,7 +119,7 @@ export class DallEAPIWrapper extends StructuredTool {
|
||||
console.log("[DALL-E]", filePath);
|
||||
var imageMarkdown = ``;
|
||||
if (this.callback != null) await this.callback(imageMarkdown);
|
||||
return imageMarkdown;
|
||||
return "Generated success";
|
||||
} catch (e) {
|
||||
if (this.callback != null)
|
||||
await this.callback("Image upload to OSS failed");
|
||||
|
Loading…
Reference in New Issue
Block a user