mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
da7fa09053
commit
c16896e96d
1 changed files with 2 additions and 0 deletions
|
|
@ -1065,8 +1065,10 @@
|
|||
|
||||
if (choices) {
|
||||
if (choices[0]?.message?.content) {
|
||||
// Non-stream response
|
||||
message.content += choices[0]?.message?.content;
|
||||
} else {
|
||||
// Stream response
|
||||
let value = choices[0]?.delta?.content ?? '';
|
||||
if (message.content == '' && value == '\n') {
|
||||
console.log('Empty response');
|
||||
|
|
|
|||
Loading…
Reference in a new issue