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

This commit is contained in:
mgroeber9110 authored and GitHub committed 2024-05-28 14:55:51 +10:00
1 parent c41767154e
commit 9335b969e8
1 file changed
+1 -1
+1 -1
View File
@@ -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 :