From 2716170a1dc3d3bf1e3bb85ec87ee9b4d3820174 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 25 Mar 2024 15:30:58 +0800 Subject: [PATCH] perf: hide whisper --- projects/app/src/components/ChatBox/MessageInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/app/src/components/ChatBox/MessageInput.tsx b/projects/app/src/components/ChatBox/MessageInput.tsx index 1632a793c36..fc1be41df38 100644 --- a/projects/app/src/components/ChatBox/MessageInput.tsx +++ b/projects/app/src/components/ChatBox/MessageInput.tsx @@ -61,7 +61,7 @@ const MessageInput = ({ renderAudioGraph, stream } = useSpeech({ shareId, outLinkUid, teamId, teamToken }); - const { isPc } = useSystemStore(); + const { isPc, whisperModel } = useSystemStore(); const canvasRef = useRef(null); const { t } = useTranslation(); @@ -369,7 +369,7 @@ const MessageInput = ({ bottom={['10px', '12px']} > {/* voice-input */} - {!shareId && !havInput && !isChatting && ( + {!shareId && !havInput && !isChatting && !!whisperModel && ( <>