Skip to content

Commit

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

0 comments on commit 9335b96

Please sign in to comment.