mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix: disable empty string
This commit is contained in:
parent
f43d255e8f
commit
ea80285e9c
1 changed files with 8 additions and 6 deletions
|
|
@ -199,13 +199,15 @@
|
|||
if (res) {
|
||||
console.log(res.text);
|
||||
|
||||
const _responses = await submitPrompt(res.text);
|
||||
console.log(_responses);
|
||||
if (res.text !== '') {
|
||||
const _responses = await submitPrompt(res.text);
|
||||
console.log(_responses);
|
||||
|
||||
if (_responses.at(0)) {
|
||||
const content = _responses[0];
|
||||
if (content) {
|
||||
assistantSpeakingHandler(content);
|
||||
if (_responses.at(0)) {
|
||||
const content = _responses[0];
|
||||
if (content) {
|
||||
assistantSpeakingHandler(content);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue