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
fix(cron): derive the quality bench origin from x-forwarded-proto so it runs locally
nirholasef9bcf5f2d68
diff --git a/api/cron/quality-bench.js b/api/cron/quality-bench.jsindex 792a82a50..8df620f30 100644--- a/api/cron/quality-bench.js+++ b/api/cron/quality-bench.js@@ -81,7 +81,15 @@ export default wrapCron(async (req, res) => {// budget, not free time in front of it.const startedAt = Date.now();const deadlineAt = startedAt + BUDGET_MS;- const baseUrl = `https://${req.headers.host || 'three.ws'}`;+ // The sweep drives our own deployment over HTTP, so it needs this service's+ // own origin. Cloud Run always sets x-forwarded-proto, which is what makes+ // production https; hardcoding the scheme instead made the bench unrunnable+ // against a plain local server, so the one cron in this batch that could not+ // be proven outside production was the one whose job is proving quality.+ // Same derivation api/ar.js and api/irl/share.js already use.+ const host = req.headers.host || 'three.ws';+ const proto = req.headers['x-forwarded-proto'] || (/^localhost|127\.0\.0\.1/.test(host) ? 'http' : 'https');+ const baseUrl = `${proto}://${host}`;let catalog;try {