fix: error message do not show in tts

This commit is contained in:
jialin
2026-06-08 11:42:20 +08:00
committed by jialin
parent bda8264788
commit 993f6edcc4
2 changed files with 57 additions and 58 deletions
+1
View File
@@ -224,6 +224,7 @@ const GroundTTS: React.FC<MessageProps> = forwardRef((props, ref) => {
}
} catch (error: any) {
setPlayingStream(false);
console.error('Error generating TTS:', error);
setTokenResult({
error: true,
errorMessage: error?.message || 'Unknown error'