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.

add xspace-agent/agent-voice-chat/providers/groq.js

oversteppinga718c20622a2
diff --git a/xspace-agent/agent-voice-chat/providers/groq.js b/xspace-agent/agent-voice-chat/providers/groq.js
new file mode 100644
index 000000000..6466816e0
--- /dev/null
+++ b/xspace-agent/agent-voice-chat/providers/groq.js
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent)
+
+const { BaseSocketProvider } = require("./base-socket-provider")
+
+class GroqProvider extends BaseSocketProvider {
+ static name = "groq"
+ static requiredEnvVars = ["GROQ_API_KEY"]
+
+ constructor() {
+ super()
+ this.name = "groq"
+ }
+
+ getApiConfig() {
+ return {
+ url: "https://api.groq.com/openai/v1/chat/completions",
+ headers: {
+ Authorization: `Bearer ${process.env.GROQ_API_KEY}`,
+ "Content-Type": "application/json"
+ },
+ model: process.env.GROQ_MODEL || "llama-3.3-70b-versatile"
+ }
+ }
+}
+
+module.exports = GroqProvider
+
+