mirror of
https://github.com/bitbaum/ai-kit.git
synced 2026-12-04 05:48:21 +01:00
byokChain links share their provider id with the deployment's link to the same vendor (groq is groq), and every shared ledger in this package keys on it. So: - Provider.byok marks an own-key link (set by byokChain). - dayCapacityTokens never counts it, even with a *_DAILY_TOKENS override. - createLinkCooldown never cools a link because of it — one reader's exhausted personal quota used to cool groq/<model> for everybody. - tryChain / walkChain / completeStream record no health for it: one reader's bad key says nothing about whether the site's AI works. - Quota readings about it carry byok: true, so an app's store can skip them. - dailyTokens is 0, not Infinity: a caller summing it by hand adds nothing. - New exports: isOwnKeyLink(link), healthFor(chain, health). No live app was exposed (checked loki, substrata, heidi, orangecat, evig, petvity: none fed an own-key chain into capacity); this closes the trap for the next one. Each guard mutation-checked. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>