ishaq101 commited on
Commit
e86d387
·
1 Parent(s): 6889c8b

add audio_text handler for room request

Browse files
src/app/components/Main.tsx CHANGED
@@ -100,6 +100,7 @@ export default function Main() {
100
  id: m.id,
101
  role: m.role,
102
  content: m.content,
 
103
  timestamp: new Date(m.created_at).getTime(),
104
  sources: m.sources ?? [],
105
  }));
 
100
  id: m.id,
101
  role: m.role,
102
  content: m.content,
103
+ audioText: m.audio_text ?? undefined,
104
  timestamp: new Date(m.created_at).getTime(),
105
  sources: m.sources ?? [],
106
  }));
src/services/api.ts CHANGED
@@ -40,6 +40,7 @@ export interface RoomMessage {
40
  id: string;
41
  role: "user" | "assistant";
42
  content: string;
 
43
  created_at: string;
44
  sources?: ChatSource[];
45
  }
 
40
  id: string;
41
  role: "user" | "assistant";
42
  content: string;
43
+ audio_text?: string | null;
44
  created_at: string;
45
  sources?: ChatSource[];
46
  }