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
fix(quota): put Auray in one shared monthly-credit pool (#1524)
tashdroid82fa06a3627e
diff --git a/server/src/__tests__/services/provider-quota.test.ts b/server/src/__tests__/services/provider-quota.test.tsindex 8fcfe35a..fd298146 100644--- a/server/src/__tests__/services/provider-quota.test.ts+++ b/server/src/__tests__/services/provider-quota.test.ts@@ -52,6 +52,7 @@ describe('provider-quota: pool inference', () => {for (const model of ['first-model', 'another-model']) {expect(inferQuotaPoolKey('aclide', model)).toBe('aclide::monthly-credit');expect(inferQuotaPoolKey('speka', model)).toBe('speka::monthly-credit');+ expect(inferQuotaPoolKey('auray', model)).toBe('auray::monthly-credit');expect(inferQuotaPoolKey('plugsky', model)).toBe('plugsky::fair-use');expect(inferQuotaPoolKey('clod', model)).toBe('clod::daily-free');expect(inferQuotaPoolKey('blaze', model)).toBe('blaze::daily-free');diff --git a/server/src/services/provider-quota.ts b/server/src/services/provider-quota.tsindex c420d747..fb1827e0 100644--- a/server/src/services/provider-quota.ts+++ b/server/src/services/provider-quota.ts@@ -118,6 +118,9 @@ export function inferPoolForPlatform(platform: Platform, modelId?: string | nullif (platform === 'sail') return 'sail::monthly-credit';if (platform === 'aclide') return 'aclide::monthly-credit';if (platform === 'speka') return 'speka::monthly-credit';+ // Auray: free credits renew monthly and are one wallet shared across chat+ // and embeddings (see providers/auray.ts), so one pool for the account.+ if (platform === 'auray') return 'auray::monthly-credit';if (platform === 'plugsky') return 'plugsky::fair-use';if (platform === 'inferbase') return 'inferbase::managed-free';if (platform === 'simplellm') return 'simplellm::free';@@ -183,6 +186,7 @@ export function inferPoolForPlatform(platform: Platform, modelId?: string | nullfunction isSharedPool(platform: Platform): boolean {if (platform === 'aclide') return true;if (platform === 'speka') return true;+ if (platform === 'auray') return true;if (platform === 'plugsky') return true;if (platform === 'inferbase' || platform === 'simplellm') return true;if (['electronhub', 'experiential', 'router9', 'septor', 'clod', 'speechify', 'blaze', 'lucidity', 'airforce', 'dreamprompting', 'waterfall', 'logfare'].includes(platform)) return true;