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(llm): tunable per-user cap + correct OpenRouter health probe
nirholas487b301608fc
diff --git a/api/_lib/env.js b/api/_lib/env.jsindex 89bbf2aef..9182fbba3 100644--- a/api/_lib/env.js+++ b/api/_lib/env.js@@ -1336,6 +1336,15 @@ export const env = {.filter(Boolean);},+ // Per-user daily LLM spend cap, in whole USD, for completions that route to+ // the platform's paid keys (Anthropic / OpenAI / Grok). Consumed by+ // _lib/llm.js (dailyCapMicroUsd) as a float; unset or non-positive falls back+ // to the hardcoded $1.00/user/day default. Free lanes and GCP-credit Vertex+ // spend never count against it.+ get LLM_USER_DAILY_CAP_USD() {+ return opt('LLM_USER_DAILY_CAP_USD');+ },+// Alibaba Cloud DashScope (international) — direct Qwen access. Used by// /api/brain/chat when the user selects a Qwen provider. Falls back to// OPENROUTER_API_KEY when unset.diff --git a/api/_lib/llm-health.js b/api/_lib/llm-health.jsindex 6c5abb403..8613e7312 100644--- a/api/_lib/llm-health.js+++ b/api/_lib/llm-health.js@@ -43,7 +43,16 @@ const PROBE_TIMEOUT_MS = 5_000;// Cheapest live model per provider — a max_tokens:1 completion costs a fraction// of a cent and the probe only reads the HTTP status, not the body.-const OPENROUTER_MODEL = 'openai/gpt-5.4-nano';+// Probe the SAME model the real chain leads its OpenRouter lane with+// (llm.js OPENROUTER_MODEL, the primary key's paid rung), not an unrelated id.+// The previous 'openai/gpt-5.4-nano' was a wrong-family guess that need not even+// exist on OpenRouter (a permanent 404). The paid 70B rung returns 200 on a+// funded key at ~$3e-6/probe (≈$0.03/yr hourly — negligible), so a 200 confirms+// the account actually has credits, and a 402 is then a TRUE, actionable "top up+// the OpenRouter key" signal rather than a false alarm. The :free variant is not+// used here: OpenRouter globally rate-limits free models (observed 429), which+// would itself masquerade as an outage.+const OPENROUTER_MODEL = 'meta-llama/llama-3.3-70b-instruct';const ANTHROPIC_MODEL = 'claude-haiku-4-5-20251001';const OPENAI_MODEL = 'gpt-5.4-nano';// Same model ids llm.js's real chain uses for these two rungs — seediff --git a/data/changelog.json b/data/changelog.jsonindex 55508c774..0c46437c1 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -3,21 +3,12 @@"entries": [{"date": "2026-07-17",- "title": "Describe your agent and we build it, no sign-in needed",- "summary": "The create-agent wizard's one-line generator (describe it, we build it) used to require an account before it would do anything, even though the rest of the wizard now lets you build first and only sign in to ship. That gap is closed: signed-out visitors can generate a complete, ready-to-tweak agent (name, body, skills, personality, greeting, category) from a single sentence or the surprise-me button, then sign in only at the final step to mint it. Guests get a fair hourly generation budget, and the whole draft is saved and restored across sign-in so nothing is lost.",+ "title": "AI features shrug off provider hiccups more gracefully",+ "summary": "The chain that powers every AI feature (chat, agent brains, prompt-enhanced 3D generation) tries a series of providers and moves to the next when one fails. Two edge cases used to slip through: a provider that returned a broken response with a success code could abort the whole request instead of failing over, and a provider that returned nothing at all was treated as a real (blank) answer. Both now fall through to a healthy provider, so a single flaky upstream no longer surfaces as an error or an empty reply. Separately, per-user daily AI budgets no longer count our own Google Cloud credit usage, so heavy use of the free lanes can never lock you out.","tags": [- "improvement"- ],- "link": "/create-agent"- },- {- "date": "2026-07-17",- "title": "The Money Pulse now tells you which token each trade was",- "summary": "Trade and snipe beats in the live Money Pulse at three.ws/pulse used to read only \"traded ◎0.012\" with no hint of what was bought or sold, while launches already named the coin. Every trade now leads with the token: its $SYMBOL when we can name it (resolved from our token cache and platform launches), or a short mint address when we can't, with the full mint on hover. Across the last 200 real trades, 198 resolve to a symbol. The same identity shows up in the compact pulse ticker embedded around the site.",- "tags": [- "improvement"- ],- "link": "/pulse"+ "fix",+ "infra"+ ]},{"date": "2026-07-17",