server : fix webui (#15462)
* Fix webui crash after streaming * build webui
This commit is contained in:
1 parent
29f538ac63
commit
1b0db8f6e0
2 files changed
+1
-1
No files matched your search
@@ -255,7 +255,7 @@ export const AppContextProvider = ({
|
||||
if (chunk.error) {
|
||||
throw new Error(chunk.error?.message || 'Unknown error');
|
||||
}
|
||||
const addedContent = chunk.choices[0].delta.content;
|
||||
const addedContent = chunk.choices[0]?.delta.content;
|
||||
const lastContent = pendingMsg.content || '';
|
||||
if (addedContent) {
|
||||
pendingMsg = {
|
||||
|
||||
Reference in new issue
Block a user