]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server: do not remove whitespace at the start of a completion chunk (#7830)
authormgroeber9110 <redacted>
Sun, 9 Jun 2024 10:50:35 +0000 (12:50 +0200)
committerGitHub <redacted>
Sun, 9 Jun 2024 10:50:35 +0000 (20:50 +1000)
examples/server/public/index-new.html

index d571c27791c72f3a672088c46f830e75f014c31c..19c9f643d3027b9ba97a3b1c9e7b59732954bd40 100644 (file)
           message = html`<${Probabilities} data=${data} />`
         } else {
           const text = isArrayMessage ?
-            data.map(msg => msg.content).join('').replace(/^\s+/, '') :
+            data.map(msg => msg.content).join('') :
             data;
           message = isCompletionMode ?
             text :