Release: 0.5.4 (#645)

* Release: v.0.5.4

* fix(bingAI.js): fix condition to check if partialText is longer than response.text

The condition to check if partialText is longer than response.text was not working correctly because it was not properly trimming the partialText before comparing its length. This fix trims the partialText before checking its length to ensure accurate comparison.
This commit is contained in:
Danny Avila 2023-07-14 12:44:31 -04:00 committed by GitHub
parent 50374f7539
commit 732a0b8029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3671 additions and 51476 deletions

View file

@ -163,7 +163,7 @@ const ask = async ({
const partialText = getPartialText();
let unfinished = false;
if (partialText?.length > response.text.length) {
if (partialText?.trim()?.length > response.text.length) {
response.text = partialText;
unfinished = true;
}