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: add OVH and Pollinations hosts for LLM configuration tests
fudjia11356cfcdb1e
diff --git a/package.json b/package.jsonindex a5e436bfc..d63f26b24 100644--- a/package.json+++ b/package.json@@ -312,7 +312,6 @@"ajv": "^8.20.0","ajv-formats": "^3.0.1","altcha-lib": "^2.2.0",- "axios": "^1.16.0","bcryptjs": "^3.0.3","bignumber.js": "^9.3.1","bn.js": "^5.2.3",diff --git a/tests/api/llm.test.js b/tests/api/llm.test.jsindex 36b1cff30..6dcfa2f17 100644--- a/tests/api/llm.test.js+++ b/tests/api/llm.test.js@@ -43,6 +43,8 @@ const OPENROUTER_HOST = 'openrouter.ai';const NVIDIA_HOST = 'integrate.api.nvidia.com';const ANTHROPIC_HOST = 'api.anthropic.com';const OPENAI_HOST = 'api.openai.com';+const OVH_HOST = 'oai.endpoints.kepler.ai.cloud.ovh.net';+const POLLINATIONS_HOST = 'text.pollinations.ai';const openaiShape = (content) => okJson({choices: [{ message: { content } }],@@ -65,8 +67,8 @@ afterEach(() => {});describe('llmConfigured', () => {- it('false when no free key and no BYOK key', () => {- expect(llm.llmConfigured()).toBe(false);+ it('true even with no free key and no BYOK key — OVH/Pollinations keyless lanes are unconditional', () => {+ expect(llm.llmConfigured()).toBe(true);});it('true when GROQ_API_KEY is set', () => {process.env.GROQ_API_KEY = 'g';@@ -150,6 +152,27 @@ describe('llmComplete — free platform providers', () => {expect(out.text).toBe('from groq');expect(calls[0].url).toContain(NVIDIA_HOST);});++ it('serves from OVH (keyless, no Authorization header) when no provider keys are configured at all', async () => {+ const calls = installFetch({ [OVH_HOST]: openaiShape('from ovh anonymous') });+ const out = await llm.llmComplete({ system: 's', user: 'u' });+ expect(out.provider).toBe('ovh');+ expect(out.text).toBe('from ovh anonymous');+ // No key configured anywhere → no Authorization header sent at all, not+ // "Bearer undefined" — the keyless tiers reject a bogus auth header.+ expect(calls[0].headers.authorization).toBeUndefined();+ });++ it('falls back to Pollinations (also keyless) when OVH errors and nothing else is configured', async () => {+ const calls = installFetch({+ [OVH_HOST]: errResp(429, 'API rate limit exceeded'),+ [POLLINATIONS_HOST]: openaiShape('from pollinations'),+ });+ const out = await llm.llmComplete({ system: 's', user: 'u' });+ expect(out.provider).toBe('pollinations');+ expect(out.text).toBe('from pollinations');+ expect(calls.map((c) => (c.url.includes(OVH_HOST) ? 'ovh' : 'pollinations'))).toEqual(['ovh', 'pollinations']);+ });});describe('llmComplete — multiple OpenRouter keys', () => {