mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
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:
parent
50374f7539
commit
732a0b8029
6 changed files with 3671 additions and 51476 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue