Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(hunyuan3d): answer the service root with an endpoint map instead of a 404

nirholasbd36309c4394
diff --git a/workers/model-hunyuan3d/app21.py b/workers/model-hunyuan3d/app21.py
index 024791c01..dbcb71117 100644
--- a/workers/model-hunyuan3d/app21.py
+++ b/workers/model-hunyuan3d/app21.py
@@ -507,6 +507,22 @@ async def get_task(task_id: str, authorization: str = Header(...)) -> dict:
return task
+async def root() -> dict:
+ """Service identity for a bare-root GET.
+
+ Nothing here serves inference, but probes and operators land on the root
+ first, and a 404 tells them nothing while filling the service log with
+ warnings. Point them at the real health route and the endpoint map instead.
+ """
+ return {
+ "service": "model-hunyuan3d-21",
+ "model": MODEL_LABEL,
+ "health": "/health",
+ "endpoints": ["POST /infer", "POST /reconstruct", "GET /tasks/{id}", "GET /jobs/{id}", "GET /health"],
+ }
+
+
@app.get("/health")
async def health() -> dict:
# torch imports lazily in the loader thread; before it lands, report the