diff --git a/app/components/realtime-chat/realtime-chat.tsx b/app/components/realtime-chat/realtime-chat.tsx index 1d79629ba..3ab4b4c56 100644 --- a/app/components/realtime-chat/realtime-chat.tsx +++ b/app/components/realtime-chat/realtime-chat.tsx @@ -162,7 +162,7 @@ export function RealtimeChat({ } // upload audio get audio_url const blob = audioHandlerRef.current?.savePlayFile(); - uploadImage(blob).then((audio_url) => { + uploadImage(blob!).then((audio_url) => { botMessage.audio_url = audio_url; // botMessage.date = new Date().toLocaleString(); // update text and audio_url @@ -192,7 +192,7 @@ export function RealtimeChat({ audioStartMillis, audioEndMillis, ); - uploadImage(blob).then((audio_url) => { + uploadImage(blob!).then((audio_url) => { userMessage.audio_url = audio_url; chatStore.updateTargetSession(session, (session) => { session.messages = session.messages.concat();