v0.7.3 (#3067)

* refactor: revert BaseClient to use node-fetch instead of undici

* chore: bump version

* chore: update npm dependencies to latest versions

* chore: fix custom footer
This commit is contained in:
Danny Avila 2024-06-15 12:17:10 -04:00 committed by GitHub
parent 8d8b17e7ed
commit 0294cfc881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 27 additions and 28 deletions

View file

@ -1,4 +1,4 @@
# v0.7.2
# v0.7.3
# Base node image
FROM node:20-alpine AS node

View file

@ -1,4 +1,4 @@
# v0.7.2
# v0.7.3
# Build API, Client and Data Provider
FROM node:20-alpine AS base

View file

@ -1,6 +1,5 @@
const crypto = require('crypto');
const { fetch } = require('undici');
const nodeFetch = require('node-fetch');
const fetch = require('node-fetch');
const { supportsBalanceCheck, Constants } = require('librechat-data-provider');
const { getConvo, getMessages, saveMessage, updateMessage, saveConvo } = require('~/models');
const { addSpaceIfNeeded, isEnabled } = require('~/server/utils');
@ -71,7 +70,7 @@ class BaseClient {
}
logger.debug(`Making request to ${url}`);
if (typeof Bun !== 'undefined') {
return await nodeFetch(url, init);
return await fetch(url, init);
}
return await fetch(url, init);
}

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/backend",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"scripts": {
"start": "echo 'please run this from the root directory'",

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/frontend",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"type": "module",
"scripts": {

View file

@ -44,9 +44,9 @@ export default function Footer({ className }: { className?: string }) {
const mainContentParts = (
typeof config?.customFooter === 'string'
? config.customFooter
: '[<LibreChat ' +
: '[LibreChat ' +
Constants.VERSION +
'>](https://librechat.ai) - ' +
'](https://librechat.ai) - ' +
localize('com_ui_pay_per_call')
).split('|');

View file

@ -1,3 +1,3 @@
// v0.7.2
// v0.7.3
// See .env.test.example for an example of the '.env.test' file.
require('dotenv').config({ path: './e2e/.env.test' });

View file

@ -1,4 +1,4 @@
<!-- v0.7.2 -->
<!-- v0.7.3 -->
<!DOCTYPE html>
<html>
<head>

28
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "LibreChat",
"version": "0.7.2",
"version": "0.7.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "LibreChat",
"version": "0.7.2",
"version": "0.7.3",
"license": "ISC",
"workspaces": [
"api",
@ -38,7 +38,7 @@
},
"api": {
"name": "@librechat/backend",
"version": "0.7.2",
"version": "0.7.3",
"license": "ISC",
"dependencies": {
"@anthropic-ai/sdk": "^0.16.1",
@ -1110,7 +1110,7 @@
},
"client": {
"name": "@librechat/frontend",
"version": "0.7.2",
"version": "0.7.3",
"license": "ISC",
"dependencies": {
"@ariakit/react": "^0.4.5",
@ -6006,9 +6006,9 @@
}
},
"node_modules/@grpc/grpc-js": {
"version": "1.9.14",
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.14.tgz",
"integrity": "sha512-nOpuzZ2G3IuMFN+UPPpKrC6NsLmWsTqSsm66IRfnBt1D4pwTqE27lmbpcPM+l2Ua4gE7PfjRHI6uedAy7hoXUw==",
"version": "1.9.15",
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.15.tgz",
"integrity": "sha512-nqE7Hc0AzI+euzUwDAy0aY5hCp10r734gMGRdU+qOPX0XSceI2ULrcXB5U2xSc5VkWwalCj4M7GzCAygZl2KoQ==",
"dependencies": {
"@grpc/proto-loader": "^0.7.8",
"@types/node": ">=12.12.47"
@ -11703,11 +11703,11 @@
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"dependencies": {
"fill-range": "^7.0.1"
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
@ -15035,9 +15035,9 @@
}
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"dependencies": {
"to-regex-range": "^5.0.1"
},

View file

@ -1,6 +1,6 @@
{
"name": "LibreChat",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"workspaces": [
"api",

View file

@ -786,7 +786,7 @@ export enum SettingsTabValues {
/** Enum for app-wide constants */
export enum Constants {
/** Key for the app's version. */
VERSION = 'v0.7.2',
VERSION = 'v0.7.3',
/** Key for the Custom Config's version (librechat.yaml). */
CONFIG_VERSION = '1.1.4',
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */

View file

@ -1,4 +1,4 @@
// v0.7.2
// v0.7.3
module.exports = {
tailwindConfig: './client/tailwind.config.cjs',
printWidth: 100,