(payload: dict)
| 40 | |
| 41 | |
| 42 | def _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 | |
| 49 | def create_image_to_model_task( |
no test coverage detected