mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
* Update README.md * Update Hetzner doc * Update heroku.md * Update README.md * Create breaking_changes.md * Update README.md * Update breaking_changes.md
3.7 KiB
3.7 KiB
⚠️ Breaking Changes ⚠️
v0.5.0
Note: These changes only apply to users who are updating from a previous version of the app.
Summary
- In this version, we have simplified the configuration process, improved the security of your credentials, and updated the docker instructions. 🚀
- Please read the following sections carefully to learn how to upgrade your app and avoid any issues. 🙏
- Note: If you're having trouble, before creating a new issue, please search for similar ones on our #issues thread on our discord or our troubleshooting discussion on our Discussions page. If you don't find a relevant issue, feel free to create a new one and provide as much detail as possible.
Configuration
- We have simplified the configuration process by using a single
.envfile in the root folder instead of separate/api/.envand/client/.envfiles. - We have renamed the
OPENAI_KEYvariable toOPENAI_API_KEYto match the official documentation. The upgrade script should do this automatically for you, but please double-check that your key is correct in the new.envfile. - We have removed the
VITE_SHOW_GOOGLE_LOGIN_OPTIONvariable, since it is no longer needed. The app will automatically enable Google Login if you provide theGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETvariables. 🔑 - We have changed the variable name for setting the app title from
VITE_APP_TITLEtoAPP_TITLE. If you had set a custom app title before, you need to update the variable name in the.envfile to keep it. Otherwise, the app might revert to the default title. - For enhanced security, we are now asking for crypto keys for securely storing credentials in the
.envfile. Crypto keys are used to encrypt and decrypt sensitive data such as passwords and access keys. If you don't set them, the app will crash on startup. 🔒 - You need to fill the following variables in the
.envfile with 32-byte (64 characters in hex) or 16-byte (32 characters in hex) values:CREDS_KEY(32-byte)CREDS_IV(16-byte)JWT_SECRET(32-byte) optional but recommended
- The upgrade script will do it for you, otherwise you can use this replit to generate some crypto keys quickly: https://replit.com/@daavila/crypto#index.js
- Make sure you keep your crypto keys safe and don't share them with anyone. 🙊
Docker
- The docker-compose file had some change. Review the new docker instructions to make sure you are setup properly. This is still the simplest and most effective method.
Local Install
- If you had installed a previous version, you can run
npm run upgradeto automatically copy the content of both files to the new.envfile and backup the old ones in the root dir. - If you are installing the project for the first time, it's recommend you run the installation script
npm run cito guide your local setup (otherwise continue to use docker) - The upgrade script requires both
/api/.envand/client/.envfiles to run properly. If you get an error about a missing client env file, just rename the/client/.env.examplefile to/client/.envand run the script again. - After running the upgrade script, the
OPENAI_API_KEYvariable might be placed in a different section in the new.envfile than before. This does not affect the functionality of the app, but if you want to keep it organized, you can look for it near the bottom of the file and move it to its usual section.
We apologize for any inconvenience caused by these changes. We hope you enjoy the new and improved version of our app!