mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-13 13:17:45 +08:00
rename seedream 5.0 model
This commit is contained in:
parent
4b729e4537
commit
c9a4c776db
@ -37,6 +37,12 @@ from comfy_api_nodes.util import (
|
|||||||
|
|
||||||
BYTEPLUS_IMAGE_ENDPOINT = "/proxy/byteplus/api/v3/images/generations"
|
BYTEPLUS_IMAGE_ENDPOINT = "/proxy/byteplus/api/v3/images/generations"
|
||||||
|
|
||||||
|
SEEDREAM_MODELS = {
|
||||||
|
"seedream 5.0 lite": "seedream-5-0-260128",
|
||||||
|
"seedream-4-5-251128": "seedream-4-5-251128",
|
||||||
|
"seedream-4-0-250828": "seedream-4-0-250828",
|
||||||
|
}
|
||||||
|
|
||||||
# Long-running tasks endpoints(e.g., video)
|
# Long-running tasks endpoints(e.g., video)
|
||||||
BYTEPLUS_TASK_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks"
|
BYTEPLUS_TASK_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks"
|
||||||
BYTEPLUS_TASK_STATUS_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks" # + /{task_id}
|
BYTEPLUS_TASK_STATUS_ENDPOINT = "/proxy/byteplus/api/v3/contents/generations/tasks" # + /{task_id}
|
||||||
@ -186,7 +192,7 @@ class ByteDanceSeedreamNode(IO.ComfyNode):
|
|||||||
inputs=[
|
inputs=[
|
||||||
IO.Combo.Input(
|
IO.Combo.Input(
|
||||||
"model",
|
"model",
|
||||||
options=["seedream-5-0-260128", "seedream-4-5-251128", "seedream-4-0-250828"],
|
options=list(SEEDREAM_MODELS.keys()),
|
||||||
),
|
),
|
||||||
IO.String.Input(
|
IO.String.Input(
|
||||||
"prompt",
|
"prompt",
|
||||||
@ -282,8 +288,8 @@ class ByteDanceSeedreamNode(IO.ComfyNode):
|
|||||||
depends_on=IO.PriceBadgeDepends(widgets=["model"]),
|
depends_on=IO.PriceBadgeDepends(widgets=["model"]),
|
||||||
expr="""
|
expr="""
|
||||||
(
|
(
|
||||||
$price := $contains(widgets.model, "seedream-5-0") ? 0.035 :
|
$price := $contains(widgets.model, "5.0 lite") ? 0.035 :
|
||||||
$contains(widgets.model, "seedream-4-5") ? 0.04 : 0.03;
|
$contains(widgets.model, "4-5") ? 0.04 : 0.03;
|
||||||
{
|
{
|
||||||
"type":"usd",
|
"type":"usd",
|
||||||
"usd": $price,
|
"usd": $price,
|
||||||
@ -309,6 +315,7 @@ class ByteDanceSeedreamNode(IO.ComfyNode):
|
|||||||
watermark: bool = False,
|
watermark: bool = False,
|
||||||
fail_on_partial: bool = True,
|
fail_on_partial: bool = True,
|
||||||
) -> IO.NodeOutput:
|
) -> IO.NodeOutput:
|
||||||
|
model = SEEDREAM_MODELS[model]
|
||||||
validate_string(prompt, strip_whitespace=True, min_length=1)
|
validate_string(prompt, strip_whitespace=True, min_length=1)
|
||||||
w = h = None
|
w = h = None
|
||||||
for label, tw, th in RECOMMENDED_PRESETS_SEEDREAM_4:
|
for label, tw, th in RECOMMENDED_PRESETS_SEEDREAM_4:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user