docs update (#508)

* doc update: stable_diffusion.md

update docker specific instruction for Stable Diffusion

* doc update: .env.example

* Update README.md

update sponsors list

* Update stable_diffusion.md

* Update stable_diffusion.md

* Update stable_diffusion.md

* Update .env.example

* Update docker-compose.yml

* Update .env.example
This commit is contained in:
Fuegovic 2023-06-13 14:27:57 -04:00 committed by GitHub
parent 821b507e0e
commit 4dc3c31df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 10 deletions

View file

@ -25,7 +25,7 @@ MONGO_URI=mongodb://127.0.0.1:27017/LibreChat
# Access key from OpenAI platform. # Access key from OpenAI platform.
# Leave it blank to disable this feature. # Leave it blank to disable this feature.
# Set to "user_provided" to allow the user to provide their API key from the UI. # Set to "user_provided" to allow the user to provide their API key from the UI.
OPENAI_API_KEY=user_provided OPENAI_API_KEY="user_provided"
# Identify the available models, separated by commas *without spaces*. # Identify the available models, separated by commas *without spaces*.
# The first will be default. # The first will be default.
@ -115,7 +115,9 @@ GOOGLE_CSE_ID=
# StableDiffusion WebUI # StableDiffusion WebUI
# This bot supports StableDiffusion WebUI, using it's API to generated requested images. # This bot supports StableDiffusion WebUI, using it's API to generated requested images.
SD_WEBUI_URL=http://0.0.0.0:7860 # See detailed instructions here: https://github.com/danny-avila/chatgpt-clone/blob/main/docs/features/plugins/stable_diffusion.md
# Use "http://127.0.0.1:7860" with local install and "http://host.docker.internal:7860" for docker
SD_WEBUI_URL=http://host.docker.internal:7860
########################## ##########################
# PaLM (Google) Endpoint: # PaLM (Google) Endpoint:
@ -183,8 +185,10 @@ SESSION_EXPIRY=(1000 * 60 * 60 * 24) * 7
# Application Domains # Application Domains
########################### ###########################
# Note: server = backend, client = public (the client is the url you visit) # Note:
# For the google login to work in dev mode, you will likely need to change DOMAIN_SERVER to localhost:3090 or place it in .env.development # Server = Backend
# Client = Public (the client is the url you visit)
# For the Google login to work in dev mode, you will need to change DOMAIN_SERVER to localhost:3090 or place it in .env.development
DOMAIN_CLIENT=http://localhost:3080 DOMAIN_CLIENT=http://localhost:3080
DOMAIN_SERVER=http://localhost:3080 DOMAIN_SERVER=http://localhost:3080

View file

@ -130,7 +130,7 @@ We apologize for any inconvenience caused by these changes. We hope you enjoy th
## Sponsors ## Sponsors
Sponsored by <a href="https://github.com/DavidDev1334"><b>@DavidDev1334</b></a>, <a href="https://github.com/mjtechguy"><b>@mjtechguy</b></a>, <a href="https://github.com/Pharrcyde"><b>@Pharrcyde</b></a>, & <a href="https://github.com/fuegovic"><b>@fuegovic</b></a> Sponsored by <a href="https://github.com/DavidDev1334"><b>@DavidDev1334</b></a>, <a href="https://github.com/mjtechguy"><b>@mjtechguy</b></a>, <a href="https://github.com/Pharrcyde"><b>@Pharrcyde</b></a>, <a href="https://github.com/fuegovic"><b>@fuegovic</b></a> & <a href="https://github.com/SphaeroX"><b>@SphaeroX</b></a>
--- ---

View file

@ -25,8 +25,8 @@ services:
target: node target: node
# image: chatgptclone/app:latest # Uncomment this & comment above to build from docker hub image # image: chatgptclone/app:latest # Uncomment this & comment above to build from docker hub image
restart: always restart: always
# extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
# - "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
env_file: env_file:
- .env - .env
environment: environment:

View file

@ -45,9 +45,13 @@ To use Stable Diffusion with this project, you will need to download and install
## 3. Run Stable Diffusion (either .sh or .bat file according to your operating system) ## 3. Run Stable Diffusion (either .sh or .bat file according to your operating system)
## 4. In the app, select the plugins endpoint, open the plugins store, and install Stable Diffusion ## 4. In the app, select the plugins endpoint, open the plugins store, and install Stable Diffusion
- You will need the stable diffusion webui API URL, which should be `http://127.0.0.1:7860` ### **Note: The default port for Gradio is `7860`. If you changed it, please update the value accordingly.**
- Alternatively: you (the admin) can set the value in `\.env` to bypass the prompt ### Docker Install
- `SD_WEBUI_URL=http://127.0.0.1:7860` - Use `SD_WEBUI_URL=http://host.docker.internal:7860` in the `.env` file
- Or `http://host.docker.internal:7860` from the webui
### Local Install
- Use `SD_WEBUI_URL=http://127.0.0.1:7860` in the `.env` file
- Or `http://127.0.0.1:7860` from the webui
![image](https://github.com/danny-avila/chatgpt-clone/assets/110412045/e33e0133-66c1-4781-9ca8-bbd8c174579c) ![image](https://github.com/danny-avila/chatgpt-clone/assets/110412045/e33e0133-66c1-4781-9ca8-bbd8c174579c)
![image](https://github.com/danny-avila/chatgpt-clone/assets/110412045/a075e5b9-d648-405d-96cf-178af792aabc) ![image](https://github.com/danny-avila/chatgpt-clone/assets/110412045/a075e5b9-d648-405d-96cf-178af792aabc)