From a6d3fd865c5ef7d1fd2ff14a00c5540aa2315641 Mon Sep 17 00:00:00 2001 From: Victor Naranjo Date: Thu, 14 Dec 2023 16:44:01 -0800 Subject: [PATCH] removed seed from prompt node --- README.md | 2 ++ chat_gpt_integration.py | 9 +++------ roles.json | 3 ++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 29efa46..28c519d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Credits to Omar92. This is based heavily off of his code https://github.com/omar92/ComfyUI-QualityOfLifeSuit_Omar92 + I rewrote the core logic because this code was not compaitible with the new version of the OpenAi api # ComfyUI-ChatGPTIntegration @@ -16,6 +17,7 @@ You will find my nodes under the new group O/.... ## How to update - No Auto Update + The file looks like this : { diff --git a/chat_gpt_integration.py b/chat_gpt_integration.py index d69eb57..3505293 100644 --- a/chat_gpt_integration.py +++ b/chat_gpt_integration.py @@ -130,9 +130,7 @@ class ChatGptPrompt: "max_words": ("INT", {"default": 400,"min":1,"max":1000}) }, "optional": { - "seed": ("INT", {"default": random.randint(1,0xFFFFFFFFFFFFFFFF), "min": 0, "max": 0xFFFFFFFFFFFFFFFF}), - "custom_formatting": ("STRING", {"multiline": True}), - + "custom_formatting": ("STRING", {"multiline": True}), }, } @@ -145,9 +143,8 @@ class ChatGptPrompt: CATEGORY = "OpenAI" # Define the category for the node - def process(self, prompt,model,seed,role,max_words,custom_formatting): - GetPrompt(role,prompt,model,max_words,custom_formatting) - return "This is a submission test" + def process(self, prompt,model,role,max_words,custom_formatting): + return GetPrompt(role,prompt,model,max_words,custom_formatting) # A dictionary that contains all nodes you want to export with their names # NOTE: names should be globally unique diff --git a/roles.json b/roles.json index ce74afa..b8ad74f 100644 --- a/roles.json +++ b/roles.json @@ -9,6 +9,7 @@ {"name": "Octavia E. Butler", "field": "Author", "style": "Innovative, Thought-Provoking"}, {"name": "Hieronymus Bosch", "field": "Painter", "style": "Fantastical, Symbolic"}, {"name": "Philip K. Dick", "field": "Author", "style": "Exploratory, Sci-Fi"}, - {"name": "Terry Gilliam", "field": "Filmmaker", "style": "Visually Imaginative, Eccentric"} + {"name": "Terry Gilliam", "field": "Filmmaker", "style": "Visually Imaginative, Eccentric"}, + {"name": "H.R. Giger", "field": "Artist", "style": "Biochemical, Gothic"} ] }