Skip to content

Commit

Permalink
✨ v0.7.3 (#3067)
Browse files Browse the repository at this point in the history
* refactor: revert BaseClient to use node-fetch instead of undici

* chore: bump version

* chore: update npm dependencies to latest versions

* chore: fix custom footer
  • Loading branch information
danny-avila authored Jun 15, 2024
1 parent 8d8b17e commit 0294cfc
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.7.2
# v0.7.3

# Base node image
FROM node:20-alpine AS node
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.multi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.7.2
# v0.7.3

# Build API, Client and Data Provider
FROM node:20-alpine AS base
Expand Down
5 changes: 2 additions & 3 deletions api/app/clients/BaseClient.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -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'",
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@librechat/frontend",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Chat/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('|');

Expand Down
2 changes: 1 addition & 1 deletion e2e/jestSetup.js
Original file line number Diff line number Diff line change
@@ -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' });
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- v0.7.2 -->
<!-- v0.7.3 -->
<!DOCTYPE html>
<html>
<head>
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LibreChat",
"version": "0.7.2",
"version": "0.7.3",
"description": "",
"workspaces": [
"api",
Expand Down
2 changes: 1 addition & 1 deletion packages/data-provider/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// v0.7.2
// v0.7.3
module.exports = {
tailwindConfig: './client/tailwind.config.cjs',
printWidth: 100,
Expand Down

0 comments on commit 0294cfc

Please sign in to comment.