Skip to content

Commit 732a0b8

Browse files
authored
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.
1 parent 50374f7 commit 732a0b8

File tree

6 files changed

+21291
-69096
lines changed

6 files changed

+21291
-69096
lines changed

api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@librechat/backend",
3-
"version": "0.5.3",
3+
"version": "0.5.4",
44
"description": "",
55
"scripts": {
66
"start": "echo 'please run this from the root directory'",
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/danny-avila/LibreChat#readme",
2222
"dependencies": {
23-
"@anthropic-ai/sdk": "^0.5.0",
23+
"@anthropic-ai/sdk": "^0.5.4",
2424
"@dqbd/tiktoken": "^1.0.2",
2525
"@fortaine/fetch-event-source": "^3.0.6",
2626
"@keyv/mongo": "^2.1.8",

api/server/routes/ask/bingAI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const ask = async ({
163163

164164
const partialText = getPartialText();
165165
let unfinished = false;
166-
if (partialText?.length > response.text.length) {
166+
if (partialText?.trim()?.length > response.text.length) {
167167
response.text = partialText;
168168
unfinished = true;
169169
}

0 commit comments

Comments
 (0)