Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Nov 7, 2024
1 parent 8deb7a9 commit 4988d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/realtime-chat/realtime-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4988d2e

Please sign in to comment.