Don't show logprobs when using smooth streaming

This commit is contained in:
Cohee
2024-04-02 15:51:00 +03:00
parent 8176e09d4a
commit 7389286862
2 changed files with 10 additions and 5 deletions

View File

@ -90,11 +90,11 @@ function getDelay(s) {
return 0;
}
if (s == ',') {
if ([',', '\n'].includes(s)) {
return punctuationDelayMs / 2;
}
if (['.', '!', '?', '\n'].includes(s)) {
if (['.', '!', '?'].includes(s)) {
return punctuationDelayMs;
}