Major update
Made changes to make nodes more cohesive
This commit is contained in:
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user