summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormgroeber9110 <45620825+mgroeber9110@users.noreply.github.com>2024-05-28 06:55:51 +0200
committerGitHub <noreply@github.com>2024-05-28 14:55:51 +1000
commit9335b969e86a222e247adacedf814d8abfff8847 (patch)
tree39a15be5593ffbc97c51ce55118b416c10772766 /examples
parentc41767154eb82aa3fe7568fc816c3402b78eae94 (diff)
server: do not remove whitespace at the start of a completion chunk (#7524)
Diffstat (limited to 'examples')
-rw-r--r--examples/server/public/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/public/index.html b/examples/server/public/index.html
index 095c4a92..4c5a34d9 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 :