fix: disable empty string

This commit is contained in:
Timothy J. Baek 2024-06-07 00:37:54 -07:00
parent f43d255e8f
commit ea80285e9c

View File

@ -199,13 +199,15 @@
if (res) { if (res) {
console.log(res.text); console.log(res.text);
const _responses = await submitPrompt(res.text); if (res.text !== '') {
console.log(_responses); const _responses = await submitPrompt(res.text);
console.log(_responses);
if (_responses.at(0)) { if (_responses.at(0)) {
const content = _responses[0]; const content = _responses[0];
if (content) { if (content) {
assistantSpeakingHandler(content); assistantSpeakingHandler(content);
}
} }
} }
} }