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: update avatar video generate and status endpoints
nirholas4dfcb8036623
diff --git a/api/avatar/video-generate.js b/api/avatar/video-generate.jsindex 6738a0e20..59edde360 100644--- a/api/avatar/video-generate.js+++ b/api/avatar/video-generate.js@@ -23,7 +23,7 @@import { cors, error, json, wrap } from '../_lib/http.js';import { sql } from '../_lib/db.js';import { publicUrl } from '../_lib/r2.js';-import { requireSession } from '../_lib/zauth.js';+import { getSessionUser } from '../_lib/auth.js';function workerUrl() {const u = process.env.LONGCAT_WORKER_URL;@@ -53,7 +53,8 @@ export default wrap(async (req, res) => {let session;try {- session = await requireSession(req);+ session = await getSessionUser(req);+ if (!session) throw new Error('no session');} catch {return error(res, 401, 'unauthorized', 'valid session required');}diff --git a/api/avatar/video-status.js b/api/avatar/video-status.jsindex eed8c2bd2..2d6ba77ad 100644--- a/api/avatar/video-status.js+++ b/api/avatar/video-status.js@@ -24,7 +24,7 @@import { cors, error, json, wrap } from '../_lib/http.js';import { sql } from '../_lib/db.js';-import { requireSession } from '../_lib/zauth.js';+import { getSessionUser } from '../_lib/auth.js';function workerUrl() {const u = process.env.LONGCAT_WORKER_URL;@@ -44,7 +44,8 @@ export default wrap(async (req, res) => {let session;try {- session = await requireSession(req);+ session = await getSessionUser(req);+ if (!session) throw new Error('no session');} catch {return error(res, 401, 'unauthorized', 'valid session required');}