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

@ -1,6 +1,6 @@
{
"name": "@librechat/backend",
"version": "0.5.3",
"version": "0.5.4",
"description": "",
"scripts": {
"start": "echo 'please run this from the root directory'",
@ -20,7 +20,7 @@
},
"homepage": "https://github.com/danny-avila/LibreChat#readme",
"dependencies": {
"@anthropic-ai/sdk": "^0.5.0",
"@anthropic-ai/sdk": "^0.5.4",
"@dqbd/tiktoken": "^1.0.2",
"@fortaine/fetch-event-source": "^3.0.6",
"@keyv/mongo": "^2.1.8",

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;
}

28757
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/frontend",
"version": "0.5.3",
"version": "0.5.4",
"description": "",
"scripts": {
"data-provider": "cd .. && npm run build:data-provider",

26376
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
{
"name": "LibreChat",
"version": "0.5.3",
"version": "0.5.4",
"description": "",
"workspaces": [
"api",
"client",
"packages/data-provider"
"packages/*"
],
"scripts": {
"install": "node config/install.js",
@ -13,7 +13,7 @@
"create-user": "node config/create-user.js",
"backend": "cross-env NODE_ENV=production node api/server/index.js",
"backend:dev": "cross-env NODE_ENV=development npx nodemon api/server/index.js",
"build:data-provider": "cd packages/data-provider && npm run build && npm link && cd ../../client && npm link @librechat/data-provider",
"build:data-provider": "cd packages/data-provider && npm run build",
"frontend": "npm run build:data-provider && cd client && npm run build",
"frontend:ci": "npm run build:data-provider && cd client && npm run build:ci",
"frontend:dev": "cd client && npm run dev",