Commit ea80285e authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: disable empty string

parent f43d255e
...@@ -199,13 +199,15 @@ ...@@ -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)) {
const content = _responses[0]; if (_responses.at(0)) {
if (content) { const content = _responses[0];
assistantSpeakingHandler(content); if (content) {
assistantSpeakingHandler(content);
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment