read alout chat messages

This commit is contained in:
2026-02-25 05:28:42 +00:00
parent 7bdeecd7f0
commit de309ee0e4
2 changed files with 2 additions and 2 deletions
@@ -133,7 +133,7 @@ export const MessageBubble = ({ message, onAnswer }: MessageBubbleProps) => {
</div>
</div>
<div className="flex justify-end mt-0.5">
<ReadAloudButton id={message.id} text={message.text} />
<ReadAloudButton id={message.id ?? message.text.slice(0, 64)} text={message.text} />
</div>
</div>
</div>
@@ -41,7 +41,7 @@ export type GroupEntry = {
export type ChatMessage =
| { role: 'user'; text: string; images?: { filename: string; dataUrl: string }[] }
| { role: 'assistant'; id: string; text: string }
| { role: 'assistant'; id?: string; text: string }
| { role: 'system'; text: string }
| {
role: 'tool';