Skip to content

Commit 6776065

Browse files
committed
[Partner Nodes] chore(Tripo): remove retired Refine node and v2.0 model version
Signed-off-by: bigcat88 <bigcat88@icloud.com>
1 parent b78cec8 commit 6776065

2 files changed

Lines changed: 0 additions & 49 deletions

File tree

comfy_api_nodes/apis/tripo.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class TripoModelVersion(str, Enum):
88
v3_1_20260211 = "v3.1-20260211"
99
v3_0_20250812 = "v3.0-20250812"
1010
v2_5_20250123 = "v2.5-20250123"
11-
v2_0_20240919 = "v2.0-20240919"
1211
v1_4_20240625 = "v1.4-20240625"
1312

1413

@@ -39,7 +38,6 @@ class TripoTaskType(str, Enum):
3938
IMAGE_TO_MODEL = "image_to_model"
4039
MULTIVIEW_TO_MODEL = "multiview_to_model"
4140
TEXTURE_MODEL = "texture_model"
42-
REFINE_MODEL = "refine_model"
4341
ANIMATE_PRERIGCHECK = "animate_prerigcheck"
4442
ANIMATE_RIG = "animate_rig"
4543
ANIMATE_RETARGET = "animate_retarget"
@@ -230,11 +228,6 @@ class TripoTextureModelRequest(BaseModel):
230228
)
231229

232230

233-
class TripoRefineModelRequest(BaseModel):
234-
type: TripoTaskType = Field(TripoTaskType.REFINE_MODEL, description="Type of task")
235-
draft_model_task_id: str = Field(..., description="The task ID of the draft model")
236-
237-
238231
class TripoAnimateRigRequest(BaseModel):
239232
type: TripoTaskType = Field(TripoTaskType.ANIMATE_RIG, description="Type of task")
240233
original_model_task_id: str = Field(..., description="The task ID of the original model")

comfy_api_nodes/nodes_tripo.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
TripoP1ImageToModelRequest,
1616
TripoP1MultiviewToModelRequest,
1717
TripoP1TextToModelRequest,
18-
TripoRefineModelRequest,
1918
TripoStyle,
2019
TripoTaskResponse,
2120
TripoTaskStatus,
@@ -600,46 +599,6 @@ async def execute(
600599
return await poll_until_finished(cls, response, average_duration=80)
601600

602601

603-
class TripoRefineNode(IO.ComfyNode):
604-
605-
@classmethod
606-
def define_schema(cls):
607-
return IO.Schema(
608-
node_id="TripoRefineNode",
609-
display_name="Tripo: Refine Draft model",
610-
category="partner/3d/Tripo",
611-
description="Refine a draft model created by v1.4 Tripo models only.",
612-
inputs=[
613-
IO.Custom("MODEL_TASK_ID").Input("model_task_id", tooltip="Must be a v1.4 Tripo model"),
614-
],
615-
outputs=[
616-
IO.String.Output(display_name="model_file"), # for backward compatibility only
617-
IO.Custom("MODEL_TASK_ID").Output(display_name="model task_id"),
618-
IO.File3DGLB.Output(display_name="GLB"),
619-
],
620-
hidden=[
621-
IO.Hidden.auth_token_comfy_org,
622-
IO.Hidden.api_key_comfy_org,
623-
IO.Hidden.unique_id,
624-
],
625-
is_api_node=True,
626-
is_output_node=True,
627-
price_badge=IO.PriceBadge(
628-
expr="""{"type":"usd","usd":0.3, "format": {"approximate": true}}""",
629-
),
630-
)
631-
632-
@classmethod
633-
async def execute(cls, model_task_id) -> IO.NodeOutput:
634-
response = await sync_op(
635-
cls,
636-
endpoint=ApiEndpoint(path="/proxy/tripo/v2/openapi/task", method="POST"),
637-
response_model=TripoTaskResponse,
638-
data=TripoRefineModelRequest(draft_model_task_id=model_task_id),
639-
)
640-
return await poll_until_finished(cls, response, average_duration=240)
641-
642-
643602
class TripoRigNode(IO.ComfyNode):
644603

645604
@classmethod
@@ -1390,7 +1349,6 @@ async def get_node_list(self) -> list[type[IO.ComfyNode]]:
13901349
TripoP1MultiviewToModelNode,
13911350
TripoImportModelNode,
13921351
TripoTextureNode,
1393-
TripoRefineNode,
13941352
TripoRigNode,
13951353
TripoRetargetNode,
13961354
TripoConversionNode,

0 commit comments

Comments
 (0)