Просмотр исходного кода

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

mgroeber9110 1 год назад
Родитель
Сommit
3e2ee44315
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/server/public/index-new.html

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

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