Skip to content

Commit

Permalink
server: do not remove whitespace at the start of a completion chunk (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroeber9110 committed Jun 9, 2024
1 parent 42b53d1 commit 3e2ee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/public/index-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down

0 comments on commit 3e2ee44

Please sign in to comment.