From 7f05a2ef1eec4fc85d6d0afa162a4c099c6e27c5 Mon Sep 17 00:00:00 2001
From: sd0ric4 <1286518974@qq.com>
Date: Thu, 27 Mar 2025 14:58:20 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E5=A4=9A?=
=?UTF-8?q?=E4=BD=99=E7=9A=84=E7=A9=BA=E8=A1=8C=EF=BC=8C=E7=AE=80=E5=8C=96?=
=?UTF-8?q?=20AIResponseBox=20=E7=BB=84=E4=BB=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../app/src/components/core/chat/components/AIResponseBox.tsx | 3 ---
1 file changed, 3 deletions(-)
diff --git a/projects/app/src/components/core/chat/components/AIResponseBox.tsx b/projects/app/src/components/core/chat/components/AIResponseBox.tsx
index 540eb7063..91e4e309b 100644
--- a/projects/app/src/components/core/chat/components/AIResponseBox.tsx
+++ b/projects/app/src/components/core/chat/components/AIResponseBox.tsx
@@ -88,7 +88,6 @@ const RenderText = React.memo(function RenderText({
let source = text || '';
return ;
});
-
const RenderTool = React.memo(
function RenderTool({
showAnimation,
@@ -210,7 +209,6 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({
interactive: InteractiveBasicType & UserInputInteractive;
}) {
const { t } = useTranslation();
-
const defaultValues = useMemo(() => {
if (interactive.type === 'userInput') {
return interactive.params.inputForm?.reduce((acc: Record, item) => {
@@ -220,7 +218,6 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({
}
return {};
}, [interactive]);
-
const handleFormSubmit = useCallback((data: Record) => {
onSendPrompt({
text: JSON.stringify(data),