File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/components/realtime-chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export function RealtimeChat({
162
162
}
163
163
// upload audio get audio_url
164
164
const blob = audioHandlerRef . current ?. savePlayFile ( ) ;
165
- uploadImage ( blob ) . then ( ( audio_url ) => {
165
+ uploadImage ( blob ! ) . then ( ( audio_url ) => {
166
166
botMessage . audio_url = audio_url ;
167
167
// botMessage.date = new Date().toLocaleString();
168
168
// update text and audio_url
@@ -192,7 +192,7 @@ export function RealtimeChat({
192
192
audioStartMillis ,
193
193
audioEndMillis ,
194
194
) ;
195
- uploadImage ( blob ) . then ( ( audio_url ) => {
195
+ uploadImage ( blob ! ) . then ( ( audio_url ) => {
196
196
userMessage . audio_url = audio_url ;
197
197
chatStore . updateTargetSession ( session , ( session ) => {
198
198
session . messages = session . messages . concat ( ) ;
You can’t perform that action at this time.
0 commit comments