ComfyUI : ChatGPT helping us prompt, but not in an expected way!

  Рет қаралды 22,839

Scott Detweiler

Scott Detweiler

Күн бұрын

I had a little brainstorm on hooking in ChatGPT into my prompt workflow in ComfyUI, but thought it would be more interesting to ask it open ended questions and then inference the results! So, in this episode of the ComfyUI tutorial series, I am going to show you a custom node that allows you to hook your workflow to the OpenAI API and we can return text and then toss that into our prompt. Now, I want to ask questions that generate unexpected answers, so this is where it got fun and also yielded an unexpected result that made ma laugh out loud. Enjoy!
#stablediffusion #comfy #aiart #chatgpt
Interested in the finished graph and in supporting the channel? Come on over to the dark side! :-)
/ @sedetweiler
You will need an OpenAI API key, which you can get here: platform.openai.com
Grab the manager custom node from here: github.com/ltdrdata/ComfyUI-M...

Пікірлер: 124
@Smashachu
@Smashachu 7 ай бұрын
I gave gpt 4 that prompt you had, and told it to make opposite negatives for them aswell. This thing is making prompts that frankly are the best photos i've literally ever seen generated ever.
@sedetweiler
@sedetweiler 7 ай бұрын
It's a pretty great level up, imho. Cheers!
@ckvfx111
@ckvfx111 7 ай бұрын
​@@sedetweiler @smashachu how did you access GPT-4 ? I have a plus subscription but every time I click to change on the GPT model, it changes to "undefined" ? Thanks
@harshitpruthi4022
@harshitpruthi4022 4 ай бұрын
can you explain the workflow a little bit , and will it generate perfect negative prompt , or atleast just tell me what should i instruct it to do exactly
10 ай бұрын
you do awesome work man! thank you for showing these!
@sedetweiler
@sedetweiler 10 ай бұрын
Glad you like them! Cheers!
@kevinmack8236
@kevinmack8236 9 ай бұрын
Your tutorials are fantastic! Please keep making them! Thank you!
@sedetweiler
@sedetweiler 9 ай бұрын
That's the plan! 🥂
@brgtubedev001
@brgtubedev001 8 ай бұрын
I second this. This series is the definitive masterclass in stable diffusion!
@hayateltelbany
@hayateltelbany 7 ай бұрын
thanx for this tutorial i enjoyed it a lot, my main problem here is this error "- Value not in list: model: 'gpt-3.5-turbo' not in []" happens with me only cuz i m using Personal free ChatGpt Account (it still provides API keys) but still not working.
@starboostt
@starboostt 5 ай бұрын
nobody knows the solution ?
@DrNapalm
@DrNapalm 3 ай бұрын
I have the same problem. Any solutions?
@HappyfatherKaha
@HappyfatherKaha Ай бұрын
as soon as you pay it will start working
@jdsguam
@jdsguam 10 ай бұрын
This too much fun!
@sedetweiler
@sedetweiler 10 ай бұрын
I am still playing with it! :-)
@kritratick6583
@kritratick6583 9 ай бұрын
hello. thanks for coming back. I know this is for comfyUI and I am going through that now. Learning curve/time. But just a quick question as you work for them and you would know this Q: Just out of curiosity. Pre SD A/1111/1.6. Sampling method had parameter slider bars/numerical values to modify; all SampleMthds parameters/sliders were the same. Now, with 1.6 the GUI/Sample method is different. How do you get that UI workflow set/grouping of sliders/values back into the V1.6. I have/took large amounts of notes for my images/sample methods. I looked through the settings and could not find it. Help? sorry. not to highjack the comfyUI where I know there are those controls. but............thanks.
@hostjhall
@hostjhall 10 ай бұрын
Lol that's cool, I was already doing similar things just using python to prompt openai endpoints and local host comfyui, easier to keep track of what I'm doing and all my relevant data in my program than by letting comfyui prompt for me, and i can do my own text sterilization on the openai response before feeding it to comfyui, and the openai endpoints accept so many arguments to affect outcome (presence penalty, frequency penalty, temperature, top_p, etc) that feels very easy to interact with directly in the completion request, I feel like in general it's more versatile to prompt openai by code and feed that data to comfy via python api calls
@sedetweiler
@sedetweiler 10 ай бұрын
You should consider making a node based on your work! Sounds great!
@hostjhall
@hostjhall 10 ай бұрын
@sedetweiler a bit before gpt4 first came out I started a "use chatgpt to learn python while making individual tools that might become useful if I find a way to combine them" project that has lead me this far. I haven't actually fully familiarized myself with comfyui yet. For me, it is an access point to its api where I can drop whatever I want into a json of the workflow as my api payload. If you wanted to talk/share anything I'm down, but I'm very new and learning as I go.
@rogerpingleton9199
@rogerpingleton9199 10 ай бұрын
Thanks!! This was a killer idea and a killer video! I'm having fun with this. It's a great source of inspiration. Trying to figure out how I can capture along with random seed and chatgpt prompt it generates to rework the scene later.
@sedetweiler
@sedetweiler 10 ай бұрын
There is another node group that has a text field that can be populated, but I didn't know about it at the time. "tiny" something, and it worked okay.
@slackmaster666
@slackmaster666 10 ай бұрын
Haven't even watched the video yet, but this is an area I'm definitely interested in. Advanced Hallucinations from the "mind" of ChatGPT: Let the Games Begin!
@sedetweiler
@sedetweiler 10 ай бұрын
I have been having a blast with it.
@taakefyrste
@taakefyrste 8 ай бұрын
Wow, i'm totally addicted to this stable diffusion node worflow, and your channel. Love it! I have not used auto1111 that mutch, cause i feel nodes are more powerful even though it can be slower to setup. I feel comfyUI is auto1111 on steroids, but requires more knowledge of how to operate it. Am i right or should i invest time into auto1111 aswell? Keep on the great work, Scott.
@sedetweiler
@sedetweiler 8 ай бұрын
AUTO1111 is a great tool, and at the end of the day they both create great images. However, you are really working with that workflow and whatever they decide to bake into the product. Comfy is for those that want to perhaps do something a bit more specific as well as learn how all of this works. Comfy's goal was to learn how SD works, and for a lot of people they just want to make pictures and not really learn it, which is fine. I drive a car and don't need to get under the hood.
@Renzsu
@Renzsu 7 ай бұрын
Automatic1111 at the office (just get stuff done, accept the limitations.. also easier for coworkers), ComfyUI at home (tinkering) :)
@w1ngb4t
@w1ngb4t 10 ай бұрын
You can rename the category (e.g. "OpenAI" instead of "O") if you're willing to edit the node's python source and change the string there. If you "git commit" your change into the cloned repo, it should merge fine with later updates to a point. Ultimately if the auther decides to change the category name as well, the merge would likely result in a conflict needing resolution.
@sedetweiler
@sedetweiler 10 ай бұрын
Yeah, I just didn't want to deal with it. I am hoping there is an addition at some point to allow us to organize these as the list is going to get long!
@lukeovermind
@lukeovermind 10 ай бұрын
​@@sedetweilernot to mention duplicate nodes!
@rossarroyo1156
@rossarroyo1156 8 ай бұрын
looks like "o" has changed the ChatGPT model completely (or I must be missing something). The components mentioned in the video are gone and the new ones are less obvious on how to use. Love the idea. Going to figure out where "O" went with the update.
@sedetweiler
@sedetweiler 8 ай бұрын
I will have to check it out. I am actually surprised there are not other ChatGPT options out there yet. I might have to do another search as this one is fine, but often adds weird tags that are not coming from ChatGPT.
@CaptainKokomoGaming
@CaptainKokomoGaming 6 ай бұрын
I desperately want this to work but I can't really afford the $30 AUD a month for the gpt subscription. Thank you for these videos Scott. You have got me past the "it's too overwhelming" roadblock for comfy.
@sedetweiler
@sedetweiler 6 ай бұрын
I understand. I am sure someone will make one that works locally, and it might already be out there.
@lxic-bz8hf
@lxic-bz8hf 10 ай бұрын
hi, did you try installing Roop on Comfyui ? I can't find any tutorial about it.
@techw4y
@techw4y 9 ай бұрын
Here is what I tried and the results are outstanding! "How will the best photograph ever made be described"
@sedetweiler
@sedetweiler 9 ай бұрын
Fantastic!
@panman1964
@panman1964 10 ай бұрын
Tiny Terra Nodes has a textDebug node that shows the output in the workflow as well as (optionally) the console
@panman1964
@panman1964 10 ай бұрын
Also I have used a shedload of WAS textNodes so that all my prompt details get written to a .txt file, Handy for batching Random Prompt generation
@sedetweiler
@sedetweiler 10 ай бұрын
Oh, thank you! I will have to check those out!
@lukeovermind
@lukeovermind 10 ай бұрын
There is also a Preview Text node, I think it is from the creator that has a snake icon on all his nodes
@Shrapnel24
@Shrapnel24 10 ай бұрын
@@lukeovermind I looked up what you were referring to and found it. The repo is pythongosssss / ComfyUI-Custom-Scripts and it is amazing! It's not only a collection of helpful nodes like the ShowText node you were talking about, but so many other helpful ComfyUI quality of life features and settings like simply being able to see your generated image under the UI menu, so no matter where you are in the graph you can see if your image is done. Highly recommended! Thanks for bringing it up.
@sedetweiler
@sedetweiler 10 ай бұрын
Sounds like he is selling something, doesn't it? :-)
@FalahgsGate
@FalahgsGate 10 ай бұрын
thank u for best video but why i getting error " Prompt outputs failed validation ChatGPT Simple _O: - Value not in list: model: 'gpt-3.5-turbo' not in []
@gardentv7833
@gardentv7833 10 ай бұрын
i got same error
@gw-j
@gw-j 10 ай бұрын
@@gardentv7833 I had the same error. I just saved the flow; closed comfyAI and reopened it and it worked....
@zeloguy
@zeloguy 10 ай бұрын
Same Error
@RollieHudson1
@RollieHudson1 9 ай бұрын
I'm also getting that same error.
@zeloguy
@zeloguy 9 ай бұрын
Actually typed my API key in wrong so you all might want to check and recheck it.
@MarkScorelle
@MarkScorelle 4 ай бұрын
I am following your tutorial but I get an error message about Prompt outputs failed validation ChatGPT Simple _O: - Value not in list: model: 'gpt-3.5-turbo' not in [] so there is no config in D:\ComfyUI-master\ComfyUI_windows_portable\ComfyUI\custom_nodes. I have an API key but can't find the config or 'gpt-3.5-turbo'. Any help would be appreciated.
@TheNexusDragoon
@TheNexusDragoon 3 ай бұрын
pip install openai==0.28.1
@salviacat7945
@salviacat7945 5 ай бұрын
any know how i go about getting the gpt 3.5 turbo model?
@tikishark1
@tikishark1 10 ай бұрын
Is threre a way to have the prompt that chatgpt generates visible before it's fed into the encoder? I'd like to use those prompts again or at least see what is being created. TY, I joined your channel as you've provided the best tutorials I've found on YT.
@I_reject_your_reality
@I_reject_your_reality 10 ай бұрын
Agreed. Some one should make a node that shows and saves chatgpt's prompts. It's frustrating when you get almost perfect image, but cannot fine tune the prompt later if you close comfyui.
@sedetweiler
@sedetweiler 10 ай бұрын
I found a node suite called "tiny" something and it has a debug node that is updated on the graph, so it saves with the image.
@generalawareness101
@generalawareness101 10 ай бұрын
Do you know if comfyui has any parallel nodes or are they all sequential?
@sedetweiler
@sedetweiler 10 ай бұрын
Sequential. However, if you are using the same prompt and all that, most of the start gets cached so running other forks on the same graph is pretty fast.
@generalawareness101
@generalawareness101 10 ай бұрын
That is really too bad as a few of us had an idea for a mixer, but for a real mixer we need parallelism.@@sedetweiler
@GamingDaveUK
@GamingDaveUK 9 ай бұрын
Is there a way to do this with a local LLM, text generation webui and I think koboldai, both have api. Guessing that calling and using the api would be the same as chatgpt? Side note: REALLY interesting videos)
@sedetweiler
@sedetweiler 8 ай бұрын
Not yet, but I can't wait until there is!
@GamingDaveUK
@GamingDaveUK 8 ай бұрын
@@sedetweiler Hopefully soon, I like to keep things all local if i can.
@sinecurasis
@sinecurasis 10 ай бұрын
It was an enjoyable tutorial
@sedetweiler
@sedetweiler 10 ай бұрын
Thanks!
@usama57926
@usama57926 5 ай бұрын
Can I create custom nodes where I can code? Actually I want to add SAM in my pipeline
@AdvancExplorer
@AdvancExplorer 8 ай бұрын
Thanks a lot for your tutorial ! I have this issue in Comfy, any idea to solve it please ? "Error occurred when executing ChatGPT Simple _O: You exceeded your current quota, please check your plan and billing details."
@sedetweiler
@sedetweiler 8 ай бұрын
Sounds like the error is telling you what you need to know. You can't do this on the free version for long.
@michail_777
@michail_777 8 ай бұрын
Is the GPT chat already there when you install Comfy or did you forget to tell me how to download? Or do you have a separate video on how to set up GPT chat in Comfy?
@sedetweiler
@sedetweiler 8 ай бұрын
It is in that node suite I show "Omar" and adding that will enable it.
@michail_777
@michail_777 8 ай бұрын
@@sedetweiler I apologize. I misunderstood. It turns out that along with the GPT nodes the model is also loaded? Or does it work over the internet? I don't want to install it yet, because I don't understand what kind of model it is and what folder it is placed in when booting?
@wenlingfan6412
@wenlingfan6412 6 ай бұрын
Prompt outputs failed validation ChatGPT Simple _O: - Value not in list: model: 'gpt-3.5-turbo' not in [] ???i have no idea what's can i do next, please help me fix this problem. thx
@zL0ki
@zL0ki 4 ай бұрын
Try the newer custom code 'ComfyUI-Chat-GPT-Integration' which is a branch of 'O'. The API key/Prompt node works. Use the rest of the nodes from 'O' to form the flow.
@michaelyenny1321
@michaelyenny1321 10 ай бұрын
hey where did you download the Save( API Format) from?
@sedetweiler
@sedetweiler 10 ай бұрын
that is coming soon. :-)
@michaelyenny1321
@michaelyenny1321 10 ай бұрын
im interested! @@sedetweiler
@michaelyenny1321
@michaelyenny1321 10 ай бұрын
looking forward to it@@sedetweiler
@Neuraesthetic
@Neuraesthetic 6 ай бұрын
my gpt models dont show?????
@alsoeris
@alsoeris 6 ай бұрын
is it possible to do this with a local download of a LLM, not an API?
@sedetweiler
@sedetweiler 6 ай бұрын
I have not looked, but I am betting someone has or soon will make one that works locally.
@zL0ki
@zL0ki 4 ай бұрын
Unfortunately, the Simple_O prompt doesn't work as it no longer authenticates. The reason the failed error "- Value not in list: model: 'gpt-3.5-turbo is because it can no longer actually query openai for a list of models. That's just a default message that appears in that field, hence the undefined when you try to click it. The newer custom node 'ComfyUI-Chat-GPT-Integration' which is a branch of 'O' works. So can use it in conjunction with the other helpful nods in 'O'
@FrankThaDeadBunny
@FrankThaDeadBunny 4 ай бұрын
No luck here either
@user-yi2zu9cb6l
@user-yi2zu9cb6l 3 ай бұрын
i tried,but not work
@MeFaltaUnRender
@MeFaltaUnRender 10 ай бұрын
is it possible to use Claude 2 instead of chatgpt?
@sedetweiler
@sedetweiler 10 ай бұрын
I would love that as well, but I don't know that anyone has made a node for that yet.
@lukeovermind
@lukeovermind 10 ай бұрын
That would be cool. I actually started a project before my Adhd kicked in where I use Claude as a Muse, it can generate Prompts, but it also acts a creative collaborator. Even got it to explain why it uses certain keywords
@sedetweiler
@sedetweiler 10 ай бұрын
oh nice! let me know when you get it done!
@denizpelin7835
@denizpelin7835 6 ай бұрын
Prompt outputs failed validation ChatGPT Simple _O: - Value not in list: model: 'gpt-3.5-turbo' not in [] i receive this error. I opened the json file with editor put in the key saved. did the workflow but receive this error. any ideas?
@sedetweiler
@sedetweiler 6 ай бұрын
You using the free version by chance?
@denizpelin7835
@denizpelin7835 6 ай бұрын
Hello Mr. Dtweiler, thank you for taking your time with my question. In Openai i have transferred 15 USD for this purpose. Chatgpt i use the normal version but i think it supports 3.5. I heard from another person now that he has the same problem and thinks there has been some changes from openai.@@sedetweiler
@awepress7464
@awepress7464 5 ай бұрын
Hi, I have a paid account with open AI and the program keeps telling me that my API key is invalid. How do I fix this?
@sedetweiler
@sedetweiler 5 ай бұрын
There is a file in the custom node you need to edit. You can check the git repository if my video didn't help you find it.
@LouisGedo
@LouisGedo 10 ай бұрын
👋
@sedetweiler
@sedetweiler 10 ай бұрын
:-)
@DreamCracker
@DreamCracker 10 ай бұрын
I just got a response from ChatGPT with "(Gelbooru tags: sunset, surreal, crimson clouds, eerie, intense colors)" so it must have some idea what it's being asked.
@sedetweiler
@sedetweiler 10 ай бұрын
Oh, it does that if you have the OpenAI mode set to "tags" versus "description"
@DreamCracker
@DreamCracker 10 ай бұрын
I was looking at the code for the node and there are initialization messages for both modes. Both mention gelbooru tags but when you use "tags", ChatGPT is told to use as much tags as possible.
@INVICTUSSOLIS
@INVICTUSSOLIS 8 ай бұрын
Do you have this problem? Failed to auto update `Quality of Life Suit`
@sedetweiler
@sedetweiler 8 ай бұрын
Yeah, I uninstalled and and re-installed it and it was fine again.
@INVICTUSSOLIS
@INVICTUSSOLIS 8 ай бұрын
Thank you, Wonderful tutorials. Easy to understand.@@sedetweiler
@user-sc7fq5xn1j
@user-sc7fq5xn1j 10 ай бұрын
required input is missing: model
@sedetweiler
@sedetweiler 10 ай бұрын
Then add the link to the model :-)
@user-sc7fq5xn1j
@user-sc7fq5xn1j 10 ай бұрын
The problem related to gpt payement, I have solved thank you.I am looking for t2i adapter style model for SDXL.Have you got any information if anyone released t2i style model for SDXL?@@sedetweiler
@JackTorcello
@JackTorcello 7 ай бұрын
@@sedetweiler ChatGPT Models are hard to locate ... ! They are not in the Models Folder, but where?
@user-yi2zu9cb6l
@user-yi2zu9cb6l 3 ай бұрын
Prompt outputs failed validation: Value not in list: model: 'gpt-3.5-turbo-1106' not in [] ChatGptPrompt: - Value not in list: model: 'gpt-3.5-turbo-1106' not in []
@sedetweiler
@sedetweiler 3 ай бұрын
The developer has a bug and it isn't yet handled. Nothing we can do about it until he fixes it. I did make a comment on his git several months ago.
@user-yi2zu9cb6l
@user-yi2zu9cb6l 3 ай бұрын
ok~Thanks for the reply, thank you for the tutorial, I will continue to follow your footsteps to learn comfyui, and look forward to your new tutorials, thank you~ @@sedetweiler
@Arewethereyet69
@Arewethereyet69 10 ай бұрын
Ok, this is great. But now is there a way to do it for free?
@sedetweiler
@sedetweiler 10 ай бұрын
Not yet, but I spend a total of $0.06 yesterday so even just taking your time trying to find one will literally cost you more money.
@hostjhall
@hostjhall 10 ай бұрын
You could find an open source llm, host that, then either edit the "simple openai" code to prompt that instead or write your own python to prompt your locally running llm, and prompt your locally running comfyui But it might just be worth the pennies it costs to use openai api endpoints, they are super cheap
@Arewethereyet69
@Arewethereyet69 10 ай бұрын
@@sedetweiler got it. Thanks.
ComfyUI : EASY Face Fixes & Swapping my wife's face into images!
19:27
Scott Detweiler
Рет қаралды 50 М.
🌊Насколько Глубокий Океан ? #shorts
00:42
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 14 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
AI Pioneer Shows The Power of AI AGENTS - "The Future Is Agentic"
23:47
INSANE ComfyUI Node writes new Nodes with AI (and Local LLMs)
21:11
LoreKeeper by LK Studio
Рет қаралды 3,9 М.
Prompt Engineering Tutorial - Master ChatGPT and LLM Responses
41:36
freeCodeCamp.org
Рет қаралды 1,4 МЛН
ANIMATEDIFF COMFYUI TUTORIAL - USING CONTROLNETS AND MORE.
24:54
enigmatic_e
Рет қаралды 82 М.
LATENT Tricks - Amazing ways to use ComfyUI
21:32
Olivio Sarikas
Рет қаралды 115 М.
I Have Ducks Stuck In My Ears😰🐤👂
0:17
Giggle Jiggle
Рет қаралды 12 МЛН