LibreChat icon indicating copy to clipboard operation
LibreChat copied to clipboard

🚀feat: WIP Custom Parameters for Stable Diffusion Profiles

Open bsu3338 opened this issue 1 year ago • 2 comments

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.

image

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

bsu3338 avatar Apr 16 '24 14:04 bsu3338

What's up with this PR? Looking forward to this feature!

ldavis9000aws avatar Apr 26 '24 00:04 ldavis9000aws

Changing this to use the new Model Specs system.

bsu3338 avatar Jun 02 '24 12:06 bsu3338

closing in favor of #2977

berry-13 avatar Jul 17 '24 16:07 berry-13