DeSinc / SallyBot

AI Chatbot coded in Discord.net C#
MIT License
299 stars 51 forks source link

Removing invalid key "filter_nsfw" from overrideSettings #25

Closed Jakoski360 closed 1 year ago

Jakoski360 commented 1 year ago

filter_nsfw is invalid in the current version of stable-diffusion-webui.

This causes the below API error in stable-diffusion-webui:

API error: POST: http://127.0.0.1:7860/sdapi/v1/txt2img {'error': 'KeyError', 'detail': '', 'body': '', 'errors': "'filter_nsfw'"}

Jakoski360 commented 1 year ago

Looks like there was attempt to fix this already in #1 .

There's references to filter_nsfw breaking things in a closed issues in the AUTOMATIC1111 stable-diffusion-webui repo, seems like it was either removed at some point or is part of an extension?

Jakoski360 commented 1 year ago

Added new commit to add override_settings to payload. This was missing from #23 but was breaking due to filter_nsfw.

image

DeSinc commented 1 year ago

good work this fixed it, thanks

don't know why there's about 40 different ways to payload.Add payload.Merge payload.wahtever {"override", override} all this crap for something that can just be in the actual payload itself wholesale as a single json arg like all the others but it seems you have figured this out and are going by some developer-made standard practice well known to everyone but me to fix the issue (as it always seems to go). it now works for me using these arcane spellwords that seem arbitrarily disconnected, probably for some internal api reason I'm guessing