]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : fix webui (#15462)
authorstduhpf <redacted>
Thu, 21 Aug 2025 05:19:22 +0000 (07:19 +0200)
committerGitHub <redacted>
Thu, 21 Aug 2025 05:19:22 +0000 (08:19 +0300)
* Fix webui crash after streaming

* build webui

tools/server/public/index.html.gz
tools/server/webui/src/utils/app.context.tsx

index fad36ed3390de112b91127387d323325180e2ea9..0e3e1f9834a7f22c5c3bc4445914f20cc1c6579d 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index 0b95e88f893768a34f5776edbb5065099c2e1d96..1860ecc72182155ee5c1103ffa0da1089f5f0e3f 100644 (file)
@@ -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 = {