mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
* 📑 update mkdocs * rename docker override file and add to gitignore * update .env.example - GOOGLE_MODELS * update index.md * doc refactor: split installation and configuration in two sub-folders * doc update: installation guides * doc update: configuration guides * doc: new docker override guide * doc: new beginner's guide for contributions - Thanks @Berry-13 * doc: update documentation_guidelines.md * doc: update testing.md * doc: update deployment guides * doc: update /dev readme * doc: update general_info * doc: add 0 value to doc weight * doc: add index.md to every doc folders * doc: add weight to index.md and move openrouter from free_ai_apis.md to ai_setup.md * doc: update toc so they display properly on the right had side in mkdocs * doc: update pandoranext.md * doc: index logging_system.md * doc: update readme.md * doc: update litellm.md * doc: update ./dev/readme.md * doc:🔖 new presets.md * doc: minor corrections * doc update: user_auth_system.md and presets.md, doc feat: add mermaid support to mkdocs * doc update: add screenshots to presets.md * doc update: add screenshots to - OpenID with AWS Cognito * doc update: BingAI cookie instruction * doc update: discord auth * doc update: facebook auth * doc: corrections to user_auth_system.md * doc update: github auth * doc update: google auth * doc update: auth clean up * doc organization: installation * doc organization: configuration * doc organization: features+plugins & update:plugins screenshots * doc organization: deploymend + general_info & update: tech_stack.md * doc organization: contributions * doc: minor fixes * doc: minor fixes
2.8 KiB
2.8 KiB
| title | weight |
|---|---|
| 🖌️ Stable Diffusion | -6 |
Stable Diffusion Plugin
To use Stable Diffusion with this project, you will either need to download and install stable-diffusion-webui or, for a dockerized deployment, you can also use stable-diffusion-webui-docker
With the docker deployment you can skip step 2 and step 3, use the setup instructions from their repository instead.
- Note: you need a compatible GPU ("CPU-only" is possible but very slow). Nvidia is recommended, but there is no clear resource on incompatible GPUs. Any decent GPU should work.
1. Follow download and installation instructions from stable-diffusion-webui readme
2. Edit your run script settings
Windows
-
Edit your webui-user.bat file by adding the following line before the call command:
-
set COMMANDLINE_ARGS=--api- Your .bat file should like this with all other settings default
@echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--api call webui.bat
Others (not tested but should work)
-
Edit your webui-user.sh file by adding the following line:
-
export COMMANDLINE_ARGS="--api"- Your .sh file should like this with all other settings default
export COMMANDLINE_ARGS="--api" #!/bin/bash ######################################################### # Uncomment and change the variables below to your need:# ######################################################### # ...rest
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
Note: The default port for Gradio is 7860. If you changed it, please update the value accordingly.
Docker Install
- Use
SD_WEBUI_URL=http://host.docker.internal:7860in the.envfile - Or
http://host.docker.internal:7860from the webui
Local Install
- Use
SD_WEBUI_URL=http://127.0.0.1:7860in the.envfile - Or
http://127.0.0.1:7860from the webui