Skip to content

Commit 9335b96

Browse files
authored
server: do not remove whitespace at the start of a completion chunk (#7524)
1 parent c417671 commit 9335b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@
594594
message = html`<${Probabilities} data=${data} />`
595595
} else {
596596
const text = isArrayMessage ?
597-
data.map(msg => msg.content).join('').replace(/^\s+/, '') :
597+
data.map(msg => msg.content).join('') :
598598
data;
599599
message = isCompletionMode ?
600600
text :

0 commit comments

Comments
 (0)