LibreChat
LibreChat copied to clipboard
🚀feat: WIP Custom Parameters for Stable Diffusion Profiles
Summary
I wanted to be able to set custom parameters for Stable Diffusion to use SDXL Turbo to generate images.
https://stable-diffusion-art.com/sdxl-turbo/
This change allows LibreChat admins to set site wide default profiles.
Change Type
Please delete any irrelevant options.
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [x] This change requires a documentation update
- [x] Translation update
Testing
Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.
tools:
stableDiffusion:
- name: "SDXL Turbo"
webUI: "http://host1:7860"
parameters:
sd_model_name: "sd_xl_turbo_1.0_fp16"
negative_prompt: ""
sampler_index: "Euler a"
cfg_scale: 1
steps: 1
width: 512
height: 512
- name: "SDXL"
webUI: "http://host2:7860"
parameters:
sd_model_name: "stable-diffusion-xl-base-1.0_fp16"
sampler_index: "Euler a"
cfg_scale: 1
steps: 22
width: 1024
height: 1024
Test Configuration:
Checklist
Please delete any irrelevant options.
- [ ] My code adheres to this project's style guidelines
- [ ] I have performed a self-review of my own code
- [ ] I have commented in any complex areas of my code
- [ ] I have made pertinent documentation changes
- [ ] My changes do not introduce new warnings
- [ ] I have written tests demonstrating that my changes are effective or that my feature works
- [ ] Local unit tests pass with my changes
- [ ] Any changes dependent on mine have been merged and published in downstream modules.
- [ ] New documents have been locally validated with mkdocs
What's up with this PR? Looking forward to this feature!
Changing this to use the new Model Specs system.
closing in favor of #2977