diff --git a/app/api/langchain-tools/dalle_image_generator.ts b/app/api/langchain-tools/dalle_image_generator.ts index 1ce20234f..0c4d14efa 100644 --- a/app/api/langchain-tools/dalle_image_generator.ts +++ b/app/api/langchain-tools/dalle_image_generator.ts @@ -119,7 +119,7 @@ export class DallEAPIWrapper extends StructuredTool { console.log("[DALL-E]", filePath); var imageMarkdown = `![img](${filePath})`; 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");