Skip to content

Commit 3e2ee44

Browse files
authored
server: do not remove whitespace at the start of a completion chunk (#7830)
1 parent 42b53d1 commit 3e2ee44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/public/index-new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
message = html`<${Probabilities} data=${data} />`
417417
} else {
418418
const text = isArrayMessage ?
419-
data.map(msg => msg.content).join('').replace(/^\s+/, '') :
419+
data.map(msg => msg.content).join('') :
420420
data;
421421
message = isCompletionMode ?
422422
text :

0 commit comments

Comments
 (0)