removed seed from prompt node
This commit is contained in:
@@ -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 :
|
||||
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-1
@@ -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"}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user