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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(studio): enhance poll URL to include prompt title for AR/viewer pages
nirholas403444f6cc31
diff --git a/api/3d/studio.js b/api/3d/studio.jsindex fde0ab37a..804a38881 100644--- a/api/3d/studio.js+++ b/api/3d/studio.js@@ -65,10 +65,13 @@ export function shapeSubmit(job, base, prompt) {};}const handle = job?.job_id ?? null;+ // The poll URL carries the prompt as `title` so the eventual done response+ // can label the AR/viewer pages without the GPT having to resend anything.+ const t = typeof prompt === 'string' && prompt.trim() ? `&title=${encodeURIComponent(prompt.trim().slice(0, 80))}` : '';return {status: 'pending',job: handle,- poll: handle ? `/api/3d/studio?job=${encodeURIComponent(handle)}` : null,+ poll: handle ? `/api/3d/studio?job=${encodeURIComponent(handle)}${t}` : null,format: 'glb',};}diff --git a/api/_mcp-studio/forge-client.js b/api/_mcp-studio/forge-client.jsindex 1b5698f10..5b61f43cb 100644--- a/api/_mcp-studio/forge-client.js+++ b/api/_mcp-studio/forge-client.js@@ -45,16 +45,8 @@ export function viewerUrl(base, glbUrl) {// Viewer, iOS gets a Quick Look launch page (GLB→USDZ converted in-page), and// desktop falls back to the WebGL viewer. One URL places the model in the// user's real room on any phone — the same lane the /ar and /forge pages use.-export function arUrl(base, glbUrl, title) {- const t = typeof title === 'string' && title.trim() ? `&title=${encodeURIComponent(title.trim().slice(0, 80))}` : '';- return `${base}/api/ar?src=${encodeURIComponent(glbUrl)}${t}`;-}--// Device-aware "place it in your room" launcher (api/ar.js): Android gets a-// Scene Viewer intent, iOS a Quick Look launch page, desktop a WebGL fallback.-// One URL serves every device, which is exactly what a ChatGPT surface needs.export function arLaunchUrl(base, glbUrl, title) {- const t = title ? `&title=${encodeURIComponent(String(title).slice(0, 80))}` : '';+ const t = typeof title === 'string' && title.trim() ? `&title=${encodeURIComponent(title.trim().slice(0, 80))}` : '';return `${base}/api/ar?src=${encodeURIComponent(glbUrl)}${t}`;}