Skip to content

Commit d672ac6

Browse files
authored
Release v0.5.8 (#854)
* chore: add 'api' image to tag release workflow * docs: update DO deployment docs to include instruction about latest stable release, as well as security best practices * Release v0.5.8 * docs: Update digitalocean.md with firewall section images * docs: make_your_own.md formatting fix for mkdocs
1 parent d3e7627 commit d672ac6

File tree

8 files changed

+63
-27
lines changed

8 files changed

+63
-27
lines changed

.github/workflows/container.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: |
3333
cp .env.example .env
3434
docker-compose build
35+
docker build -f Dockerfile.multi --target api-build -t librechat-api .
3536
3637
# Get Tag Name
3738
- name: Get Tag Name
@@ -45,3 +46,7 @@ jobs:
4546
docker push ghcr.io/${{ github.repository_owner }}/librechat:${{ env.TAG_NAME }}
4647
docker tag librechat:latest ghcr.io/${{ github.repository_owner }}/librechat:latest
4748
docker push ghcr.io/${{ github.repository_owner }}/librechat:latest
49+
docker tag librechat-api:latest ghcr.io/${{ github.repository_owner }}/librechat-api:${{ env.TAG_NAME }}
50+
docker push ghcr.io/${{ github.repository_owner }}/librechat-api:${{ env.TAG_NAME }}
51+
docker tag librechat-api:latest ghcr.io/${{ github.repository_owner }}/librechat-api:latest
52+
docker push ghcr.io/${{ github.repository_owner }}/librechat-api:latest

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@librechat/backend",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"description": "",
55
"scripts": {
66
"start": "echo 'please run this from the root directory'",

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@librechat/frontend",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"description": "",
55
"scripts": {
66
"data-provider": "cd .. && npm run build:data-provider",

client/src/components/Input/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Footer() {
1414
rel="noreferrer"
1515
className="underline"
1616
>
17-
{config?.appTitle || 'LibreChat'} v0.5.7
17+
{config?.appTitle || 'LibreChat'} v0.5.8
1818
</a>
1919
{' - '}. {localize('com_ui_pay_per_call')}
2020
</div>

docs/deployment/digitalocean.md

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,28 @@ Digital Ocean is also my preferred choice for testing deployment, as it comes wi
2121
## Table of Contents
2222

2323
- **[Part I: Starting from Zero](#part-i-starting-from-zero)**
24-
- [1. DigitalOcean signup](#1-click-here-or-on-the-banner-above-to-get-started-on-digitalocean)
25-
- [2. Access console](#2-access-your-droplet-console)
26-
- [3. Console user setup](#3-once-you-have-logged-in-immediately-create-a-new-non-root-user)
24+
- [1. DigitalOcean signup](#1-click-here-or-on-the-banner-above-to-get-started-on-digitalocean)
25+
- [2. Access console](#2-access-your-droplet-console)
26+
- [3. Console user setup](#3-once-you-have-logged-in-immediately-create-a-new-non-root-user)
27+
- [4. Firewall Setup](#4-firewall-setup)
2728
- **[Part II: Installing Docker & Other Dependencies](#part-ii-installing-docker-and-other-dependencies)**
28-
- [1. Update and Install Docker dependencies](#1-update-and-install-docker-dependencies)
29-
- [2. Add Docker Repository to APT Sources](#2-add-docker-repository-to-apt-sources)
30-
- [3. Install Docker](#3-install-docker)
31-
- [4. Verify Docker](#4-verify-that-docker-is-running-on-ubuntu)
32-
- [5. Install the Latest Version of Docker Compose](#5-install-the-latest-version-of-docker-compose)
33-
- [6. Install git & npm](#6-as-part-of-this-guide-i-will-recommend-you-have-git-and-npm-installed)
29+
- [1. Update and Install Docker dependencies](#1-update-and-install-docker-dependencies)
30+
- [2. Add Docker Repository to APT Sources](#2-add-docker-repository-to-apt-sources)
31+
- [3. Install Docker](#3-install-docker)
32+
- [4. Verify Docker](#4-verify-that-docker-is-running-on-ubuntu)
33+
- [5. Install the Latest Version of Docker Compose](#5-install-the-latest-version-of-docker-compose)
34+
- [6. Install git & npm](#6-as-part-of-this-guide-i-will-recommend-you-have-git-and-npm-installed)
3435
- **[Part III: Setup LibreChat](#part-iii-setup-librechat)**
35-
- [1. Clone down the repo](#1-clone-down-the-repo)
36-
- [2. Create a global environment file](#2-create-a-global-environment-file)
37-
- [3. Start docker and run LibreChat](#3-start-docker-and-then-run-the-installationupdate-script)
38-
- [4. Access LibreChat](#4-once-the-app-is-running-you-can-access-it-at-httpyourserverip)
36+
- [1. Clone down the repo](#1-clone-down-the-repo)
37+
- [2. Create a global environment file](#2-create-a-global-environment-file)
38+
- [3. Start docker and run LibreChat](#3-start-docker-and-then-run-the-installationupdate-script)
39+
- [4. Access LibreChat](#4-once-the-app-is-running-you-can-access-it-at-httpyourserverip)
3940
- **[Part IV: Updating LibreChat](#part-iv-updating-librechat)**
40-
- **[Part V: Editing the NGINX file (optional)](#part-v-editing-the-nginx-file-for-custom-domains-and-advanced-configs)**
4141

42+
> The last sections are all optional configurations
43+
44+
- **[Part V: Editing the NGINX file](#part-v-editing-the-nginx-file-for-custom-domains-and-advanced-configs)**
45+
- **[Part VI: Use the Latest Stable Release instead of Latest Main Branch](#part-vi-use-the-latest-stable-release-instead-of-latest-main-branch)**
4246

4347
## Part I: Starting from Zero:
4448

@@ -120,6 +124,18 @@ getent group sudo | cut -d: -f4
120124
su - <yourusername>
121125
```
122126

127+
### **4. Firewall Setup**
128+
129+
It's highly recommended you setup a simple firewall for your setup.
130+
131+
Click on your droplet from the projects page again, and goto the Networking tab on the left-hand side under your ipv4:
132+
133+
![image](https://github.com/danny-avila/LibreChat/assets/110412045/20a2f31b-83ec-4052-bca7-27a672c3770a)
134+
135+
Create a firewall, add your droplet to it, and add these inbound rules (will work for this guide, but configure as needed)
136+
137+
![image](https://github.com/danny-avila/LibreChat/assets/110412045/d9bbdd7b-3702-4d2d-899b-c6457e6d221a)
138+
123139
---
124140

125141
### Part II: Installing Docker and Other Dependencies:
@@ -287,13 +303,22 @@ cd LibreChat/
287303
```
288304

289305
### **2. Create a global environment file.**
290-
The default values are enough to get you started and running the app! API credentials can be provided when accessing the web app.
306+
The default values are enough to get you started and running the app.
291307

292308
```bash
293309
# Copies the example file as your global env file
294310
cp .env.example .env
295311
```
296312

313+
However, it's highly recommended you use environment variables for any sensitive credentials until we remove use of localStorage for passing credentials from the frontend
314+
315+
```bash
316+
nano .env
317+
318+
# then, add your credentials
319+
OPENAI_API_KEY=sk-yourKey
320+
```
321+
297322
**That's it!**
298323

299324
For thorough configuration, however, you should edit your .env file as needed, and do read the comments in the file and the resources below.
@@ -447,8 +472,7 @@ You should be all set!
447472
448473
> Note that any changes to the code in this environment won't be reflected because the compose file is pulling the docker images built automatically by GitHub
449474
450-
<!-- TODO: since the api images are not part of the tag workflow yet
451-
## Part VI: Latest Stable Release vs. Latest Release (editing the compose file)
475+
## Part VI: Use the Latest Stable Release instead of Latest Main Branch
452476

453477
By default, this setup will pull the latest updates to the main branch of Librechat. If you would rather have the latest "stable" release, which is defined by the [latest tags](https://github.com/danny-avila/LibreChat/releases), you will need to edit deploy-compose.yml and commit your changes exactly as above in Part V.
454478

@@ -457,8 +481,14 @@ Let's edit `deploy-compose.yml`:
457481
```bash
458482
nano deploy-compose.yml
459483
```
460-
-->
461484

485+
Change `librechat-dev-api` to `librechat-api`:
486+
487+
```yaml
488+
image: ghcr.io/danny-avila/librechat-api:latest
489+
```
490+
491+
Stage and commit as in Part V, and you're all set!
462492
463493
---
464494

docs/features/plugins/make_your_own.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ const StableDiffusionAPI = require('./StableDiffusion');
159159
```
160160

161161
In handleTools.js, find the beginning of the `loadTools` function and add your plugin/tool to the toolConstructors object.
162+
162163
```js
163164
const loadTools = async ({ user, model, tools = [], options = {} }) => {
164165
const toolConstructors = {
@@ -169,7 +170,7 @@ const loadTools = async ({ user, model, tools = [], options = {} }) => {
169170
'stable-diffusion': StableDiffusionAPI // <----- Newly Added. Note: the key is the 'name' provided in the class.
170171
// We will now refer to this name as the `pluginKey`
171172
};
172-
```
173+
```
173174
174175
If your Tool class requires more advanced initialization, you would add it to the customConstructors object.
175176

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LibreChat",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"description": "",
55
"workspaces": [
66
"api",

0 commit comments

Comments
 (0)