MCPcopy
hub / github.com/htdt/godogen / _submit_task

Function _submit_task

asset-gen/tools/tripo3d.py:42–46  ·  view source on GitHub ↗
(payload: dict)

Source from the content-addressed store, hash-verified

40
41
42def _submit_task(payload: dict) -> str:
43 resp = requests.post(f"{API_BASE}/task", headers=_headers(), json=payload)
44 if not resp.ok:
45 raise RuntimeError(f"Tripo3D task submit failed: HTTP {resp.status_code}: {resp.text}")
46 return resp.json()["data"]["task_id"]
47
48
49def create_image_to_model_task(

Callers 4

create_prerigcheck_taskFunction · 0.85
create_rig_taskFunction · 0.85
create_retarget_taskFunction · 0.85

Calls 1

_headersFunction · 0.85

Tested by

no test coverage detected