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

This commit is contained in:
mgroeber9110 2024-06-09 12:50:35 +02:00 committed by GitHub
parent 42b53d192f
commit 3e2ee44315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -416,7 +416,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 :