7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
test(llmtr): run #1390 validation cases unpaced; credit Yi-111-a (#1422)
Tashfeena6b2158c7c36
diff --git a/README.md b/README.mdindex 3220b118..e4a2052e 100644--- a/README.md+++ b/README.md@@ -514,6 +514,7 @@ Contributors very welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for the dev lo<a href="https://github.com/levonk"><img src="https://images.weserv.nl/?url=github.com/levonk.png&w=40&h=40&fit=cover&mask=circle" width="40" alt="@levonk" /></a><a href="https://github.com/tripstar6000"><img src="https://images.weserv.nl/?url=github.com/tripstar6000.png&w=40&h=40&fit=cover&mask=circle" width="40" alt="@tripstar6000" /></a><a href="https://github.com/alkank"><img src="https://images.weserv.nl/?url=github.com/alkank.png&w=40&h=40&fit=cover&mask=circle" width="40" alt="@alkank" /></a>+<a href="https://github.com/Yi-111-a"><img src="https://images.weserv.nl/?url=github.com/Yi-111-a.png&w=40&h=40&fit=cover&mask=circle" width="40" alt="@Yi-111-a" /></a>## Disclaimerdiff --git a/server/src/__tests__/providers/llmtr.test.ts b/server/src/__tests__/providers/llmtr.test.tsindex f69760a4..d2c2c75f 100644--- a/server/src/__tests__/providers/llmtr.test.ts+++ b/server/src/__tests__/providers/llmtr.test.ts@@ -84,12 +84,12 @@ describe('LLMTR provider', () => {it('#1390: a 403 refusing automated validation probes is inconclusive, never invalid', async () => {// Live LLMTR response to our probe on 2026-10-03, reported on a working key.vi.spyOn(global, 'fetch').mockResolvedValue(json({ error: { type: 'forbidden', message: 'Automated API key validation tools are not supported.' } }, 403));- await expect(getProvider('llmtr')!.validateKey('good-key')).rejects.toThrow(/not supported[\s\S]*the key was not checked|the key was not checked/);+ await expect(unpaced().validateKey('good-key')).rejects.toThrow(/not supported[\s\S]*the key was not checked|the key was not checked/);});it('#1390: a plain 403 with an ordinary auth message still reports invalid', async () => {vi.spyOn(global, 'fetch').mockResolvedValue(json({ error: { type: 'auth_error', message: 'Invalid API key' } }, 403));- await expect(getProvider('llmtr')!.validateKey('bad-key')).resolves.toMatchObject({ valid: false });+ await expect(unpaced().validateKey('bad-key')).resolves.toMatchObject({ valid: false });});it('does not accept an HTML 404', async () => {