Explorar el Código

server: do not remove whitespace at the start of a completion chunk (#7524)

mgroeber9110 hace 1 año
padre
commit
9335b969e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/server/public/index.html

+ 1 - 1
examples/server/public/index.html

@@ -594,7 +594,7 @@
           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 :