Major update

Made changes to make nodes more cohesive
This commit is contained in:
daxcay
2024-07-05 09:04:31 +05:30
parent 37d33ca268
commit e8752c4f71
20 changed files with 441 additions and 543 deletions
+3 -8
View File
@@ -3,9 +3,8 @@ import io
from PIL import Image
import numpy as np
from openai import OpenAI
import os
class DATASET_OpenAIChatImage:
class DataSet_OpenAIChatImage:
def __init__(self):
pass
@@ -54,14 +53,10 @@ class DATASET_OpenAIChatImage:
except Exception as e:
return (f"Error: {str(e)}",)
@classmethod
def IS_CHANGED(s, image, image_detail, model, api_url, api_key, prompt, token_length):
return os.urandom(16).hex()
N_CLASS_MAPPINGS = {
"DATASET_OpenAIChatImage": DATASET_OpenAIChatImage,
"DataSet_OpenAIChatImage": DataSet_OpenAIChatImage,
}
N_DISPLAY_NAME_MAPPINGS = {
"DATASET_OpenAIChatImage": "DATASET_OpenAIChatImage",
"DataSet_OpenAIChatImage": "DataSet_OpenAIChatImage",
}