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
add xspace-agent/xspace-agent/providers/openai-realtime.js
overstepping1141e95fe9bc
diff --git a/xspace-agent/xspace-agent/providers/openai-realtime.js b/xspace-agent/xspace-agent/providers/openai-realtime.jsnew file mode 100644index 000000000..ada1ea086--- /dev/null+++ b/xspace-agent/xspace-agent/providers/openai-realtime.js@@ -0,0 +1,36 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§70]++// DEPRECATED: Use packages/core (xspace-agent) instead.+// This file is kept for backward compatibility with server.js.+// Will be removed in v1.0.++const axios = require("axios")++const API_KEY = process.env.OPENAI_API_KEY+const MODEL = process.env.OPENAI_REALTIME_MODEL || "gpt-4o-realtime-preview-2024-12-17"++module.exports = {+ type: "webrtc",++ async createSession(agentId, prompts, voices) {+ const response = await axios.post(+ "https://api.openai.com/v1/realtime/sessions",+ {+ model: MODEL,+ modalities: ["audio", "text"],+ voice: voices[agentId],+ instructions: prompts[agentId]+ },+ {+ headers: {+ Authorization: `Bearer ${API_KEY}`,+ "Content-Type": "application/json"+ }+ }+ )+ return response.data+ }+}++