mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-06-06 21:00:21 +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);
|
console.log("[DALL-E]", filePath);
|
||||||
var imageMarkdown = ``;
|
var imageMarkdown = ``;
|
||||||
if (this.callback != null) await this.callback(imageMarkdown);
|
if (this.callback != null) await this.callback(imageMarkdown);
|
||||||
return imageMarkdown;
|
return "Generated success";
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (this.callback != null)
|
if (this.callback != null)
|
||||||
await this.callback("Image upload to OSS failed");
|
await this.callback("Image upload to OSS failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user