mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-08 18:07:04 +08:00
embargo lift rename nodes
This commit is contained in:
parent
d32d00a5a6
commit
422d633c86
@ -255,9 +255,9 @@ class OpenAIDalle3(ComfyNodeABC):
|
|||||||
img_tensor = validate_and_cast_response(response)
|
img_tensor = validate_and_cast_response(response)
|
||||||
return (img_tensor,)
|
return (img_tensor,)
|
||||||
|
|
||||||
class OpenAIXXX(ComfyNodeABC):
|
class OpenAIGPTImage1(ComfyNodeABC):
|
||||||
"""
|
"""
|
||||||
Generates images synchronously via OpenAI's DALL·E 2 endpoint.
|
Generates images synchronously via OpenAI's GPT Image 1 endpoint.
|
||||||
|
|
||||||
Uses the proxy at /proxy/openai/images/generations. Returned URLs are short‑lived,
|
Uses the proxy at /proxy/openai/images/generations. Returned URLs are short‑lived,
|
||||||
so download or cache results if you need to keep them.
|
so download or cache results if you need to keep them.
|
||||||
@ -272,7 +272,7 @@ class OpenAIXXX(ComfyNodeABC):
|
|||||||
"prompt": (IO.STRING, {
|
"prompt": (IO.STRING, {
|
||||||
"multiline": True,
|
"multiline": True,
|
||||||
"default": "",
|
"default": "",
|
||||||
"tooltip": "Text prompt for XXX",
|
"tooltip": "Text prompt for GPT Image 1",
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
"optional": {
|
"optional": {
|
||||||
@ -328,7 +328,7 @@ class OpenAIXXX(ComfyNodeABC):
|
|||||||
API_NODE = True
|
API_NODE = True
|
||||||
|
|
||||||
def api_call(self, prompt, seed=0, quality="low", background="opaque", image=None, mask=None, n=1, size="1024x1024", auth_token=None):
|
def api_call(self, prompt, seed=0, quality="low", background="opaque", image=None, mask=None, n=1, size="1024x1024", auth_token=None):
|
||||||
model = "xxx"
|
model = "gpt-image-1"
|
||||||
path = "/proxy/openai/images/generations"
|
path = "/proxy/openai/images/generations"
|
||||||
request_class = OpenAIImageGenerationRequest
|
request_class = OpenAIImageGenerationRequest
|
||||||
img_binary = None
|
img_binary = None
|
||||||
@ -403,12 +403,12 @@ class OpenAIXXX(ComfyNodeABC):
|
|||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
"OpenAIDalle2": OpenAIDalle2,
|
"OpenAIDalle2": OpenAIDalle2,
|
||||||
"OpenAIDalle3": OpenAIDalle3,
|
"OpenAIDalle3": OpenAIDalle3,
|
||||||
"OpenAIXXX": OpenAIXXX,
|
"OpenAIGPTImage1": OpenAIGPTImage1,
|
||||||
}
|
}
|
||||||
|
|
||||||
# A dictionary that contains the friendly/humanly readable titles for the nodes
|
# A dictionary that contains the friendly/humanly readable titles for the nodes
|
||||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||||
"OpenAIDalle2": "OpenAI DALL·E 2",
|
"OpenAIDalle2": "OpenAI DALL·E 2",
|
||||||
"OpenAIDalle3": "OpenAI DALL·E 3",
|
"OpenAIDalle3": "OpenAI DALL·E 3",
|
||||||
"OpenAIXXX": "XXX",
|
"OpenAIGPTImage1": "OpenAI GPT Image 1",
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user