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(export-catalog): keep --stdout output pure JSON
Tashfeene2e97092b46b
diff --git a/server/src/scripts/export-catalog.ts b/server/src/scripts/export-catalog.tsindex 5f64aff4..b7dfa0cf 100644--- a/server/src/scripts/export-catalog.ts+++ b/server/src/scripts/export-catalog.ts@@ -65,6 +65,10 @@ function main() {const tier = (arg('tier') as 'live' | 'monthly' | undefined) ?? 'live';const version = arg('version') ?? dateVersion();+ // In --stdout mode stdout must carry ONLY the JSON document; incidental+ // logs (e.g. initDb's "Database initialized at ...") go to stderr instead.+ if (flag('stdout')) console.log = console.error;+initDb(dbPath);const db = getDb();