From 5f34e794ae4fcce08db24cb0f7c3f8c8269a1674 Mon Sep 17 00:00:00 2001
From: Scenery <1507337624@qq.com>
Date: Tue, 16 Apr 2024 20:03:19 +0800
Subject: [PATCH] feat: add chat message downlaod url

---
 apps/agent/src/components/PreviewChat/InputArea/mobile/index.tsx | 1 +
 apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/apps/agent/src/components/PreviewChat/InputArea/mobile/index.tsx b/apps/agent/src/components/PreviewChat/InputArea/mobile/index.tsx
index 2bf3d0ee..a13ca30e 100644
--- a/apps/agent/src/components/PreviewChat/InputArea/mobile/index.tsx
+++ b/apps/agent/src/components/PreviewChat/InputArea/mobile/index.tsx
@@ -148,6 +148,7 @@ const MobileInputArea: FC<IInputAreaProps> = ({
             fileName: fileName,
             contentType: file.type,
             fileID: uploadRes.id,
+            downloadURL: uploadRes.downloadURL,
           }
           setKnowledgeFiles((prev) => {
             const currentItems = [...prev]
diff --git a/apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx b/apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx
index 54ee4b19..203e1a9e 100644
--- a/apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx
+++ b/apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx
@@ -154,6 +154,7 @@ const PCInputArea: FC<IInputAreaProps> = ({ isReceiving, onSendMessage }) => {
             fileName: fileName,
             contentType: file.type,
             fileID: uploadRes.id,
+            downloadURL: uploadRes.downloadURL,
           }
           setKnowledgeFiles((prev) => {
             const currentItems = [...prev]