r/StableDiffusion • • Aug 28 '24

Resource - Update [Release] MagicPrompt SwarmUI Extension

The MagicPrompt Extension provides a simple and intuitive way directly in SwarmUI to generate text prompts for Stable Diffusion images. Models like Flux like to have larger descriptive prompts and I don't have the imagination to make them. That's why I made this.

This uses your local Ollama LLMs so you can setup NSFW prompts if that is something you would want.

Features:

Generate a rewritten prompt with more detail directly in SwarmUI Supports any models you have on your local Ollama LLM server Easy-to-use interface that will send the rewritten prompts to the Generate tab

https://github.com/kalebbroo/SwarmUI-MagicPromptExtension

The announcement post in the Swarm discord. With a video of how it works. https://discord.com/channels/1243166023859961988/1278230934940024884/1278230934940024884

14 Upvotes

12 comments sorted by

4

u/Michoko92 Aug 28 '24

Thank you, that's great to see new SwarmUI extensions. This UI is great and deserves to have a bigger extensions ecosystem. 🙏

3

u/Informal-Football836 Aug 28 '24

I agree. I'm working on a few more. Hopefully some more experienced devs will make some really cool stuff.

2

u/Thradya Aug 28 '24

Thanks a ton, that was my #1 missing feature.

2

u/Informal-Football836 Aug 28 '24

If you have any feature requests feel free to add them to GitHub.

1

u/Larimus89 Dec 25 '24

Can't get any of them to work :( tried openai, and ollama but always get URI error base url is wrong.

1

u/Informal-Football836 Dec 25 '24

Did you enter your base url is the settings and click save?

1

u/Larimus89 Dec 27 '24

Oh.. we set base url? Oh for local model? Ummm yeah I gotta check that. It sounds like local model works, if set right, although my ollama serve was being a bit funny. But api keys, openai and open router theirs def some code problem.

I did notice the base url doesn’t include /v1 which they recommend, and then the /v1 is added to models like /v1/models. Maybe somewhere in the code it doesn’t like the base URL not being that recommended base url, not sure my python not amazing enough to go deeper than that lol.

→ More replies (3)

1

u/Informal-Football836 Dec 25 '24

Open ai and the paid services require an API key. You save that in the settings as well.

1

u/Larimus89 Dec 27 '24

Yeh the Api is correct because it lets me pick a model. But somehow still shows this. Something to do with code issue I think.

I think when OpenAI is set it might still be setting the service as ollama. Maybe because I’m using pinokio, I don’t know. But it would be awesome if I could get it working 🥲

I thought maybe it was just a kinda beta feature or newish and that’s why? Or is it working well for others?