Files
substrata/scripts
CatoandClaude Opus 5.5 b2dea2fcef feat(ask): fast, any AI via shared ai-kit BYOK, one-click claim verification (#89)
* feat(ask): fast, any-AI via shared ai-kit BYOK, and one-click claim verification

- BYOK on @bitbaum/ai-kit/byok (1.12.0): ten OpenAI-shaped vendors incl.
  Anthropic and Gemini, streamed with tools; drops @anthropic-ai/sdk and the
  local byok-shared copy. Signed-in keys sealed server-side (ai-kit/seal,
  SUBSTRATA_BYOK_SECRET, research_ai_keys); signed-out keys stay in the browser.
  Model picker reads the vendor's live catalogue. Panel in Ask and /account/settings#ai.
- Speed: status before any lookup, parallel tool calls, 3-round cap, page-only
  questions skip tools, free-chain link cooldown after 429s, parallel web reads,
  trimmed history.
- Verify: Check this on every Figure, event rows, bottleneck facts, company lede.
  Reads the cited source + searches the web in parallel before the model, answers
  Supported/Contradicted/Outdated/Unverifiable with quoted passages and links.
- /api/factcheck now runs the same agent loop.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(ask): claim context for list values, computed figures check via their method, no web search for bare numbers

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 14:10:02 -07:00
..