From f0ffd0e347202d751aab227251ee00cb86da1f87 Mon Sep 17 00:00:00 2001 From: mgroeber9110 Date: Fri, 24 May 2024 22:12:13 +0200 Subject: [PATCH] server: do not remove whitespace at the start of a completion chunk --- examples/server/public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 2961999f2451a..142f817b3be6a 100644 --- a/examples/server/public/index.html +++ b/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 :