From 1d3c2891b702bb2d2be2d2b7d0487440c983ebf9 Mon Sep 17 00:00:00 2001 From: AIExplorer Date: Thu, 8 May 2025 01:20:42 +0530 Subject: [PATCH] Add files via upload --- chatgpt_helper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chatgpt_helper.py b/chatgpt_helper.py index dcbe476..8f1cfbf 100644 --- a/chatgpt_helper.py +++ b/chatgpt_helper.py @@ -1,6 +1,7 @@ import os import openai - +import json +import hashlib class ChatGptHelper: @classmethod @@ -89,7 +90,7 @@ class ChatGptHelper: @classmethod - def IS_CHANGED(cls, text, file, enable_replacement, image_style, gender_age_replacement, lora_trigger, negative_prompt_text): + def IS_CHANGED(cls,enable_chatgpt,chatgpt_api_key, input_prompt_text, chatgpt_instruction_text): """ Tells ComfyUI whether this node should be re-executed. Returns None to indicate the node should be considered cached.