Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀feat: WIP Custom Parameters for Stable Diffusion Profiles #2433

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

bsu3338
Copy link
Contributor

@bsu3338 bsu3338 commented Apr 16, 2024

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.

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • 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

commit 0a025f1
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 14:10:18 2024 -0500

    Update data-service.ts

commit aab6ced
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 14:07:35 2024 -0500

    Update types.ts

commit be9e53c
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 14:05:21 2024 -0500

    Update react-query-service.ts

commit 39de165
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 14:01:45 2024 -0500

    Update api-endpoints.ts

commit 532249c
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:55:40 2024 -0500

    Update UserService.js

commit e564e54
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:52:18 2024 -0500

    Create preferences.js

commit 47c1226
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:49:12 2024 -0500

    Update index.js

commit 7560a20
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:46:51 2024 -0500

    Update index.js

commit 51d5d16
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:44:51 2024 -0500

    Create Preference.js

commit 41565b6
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:43:38 2024 -0500

    Create preference.js

commit b91cba9
Author: bsu3338 <bsu3338@users.noreply.github.com>
Date:   Fri Apr 12 13:41:49 2024 -0500

    Add Preference Model
@ldavis9000aws
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants