d68f6b653ad24de8dd1f887d1ba89751bcd9ae10
- Memoize buildSystemPrompt by (mode|channelCulture); identical signatures now reuse the ~5k-token core instead of rebuilding per sub-batch call (textBatchProcessor rebuilt it inside the loop; a 200-msg batch re-sent the full system prompt ~4x). Correction tail stays per-attempt (uncached). - Hoist URL-image -> vision evidence out of the per-sub-batch loop in textBatchProcessor: it depends only on fetched images + full target set, so compute once per whole batch, not per sub-batch. - Compact system instructions: collapse 3x-duplicated 'evaluate by content alone' statements into one standalone rule; trim output.ts channel-culture + context framing already covered by rules.ts/system.ts; drop duplicate programming-error-log few-shot (id 17, covered by rules AMAN list). - Fix misleading config default: AI_LLM_BASE_URL default -> omniroute (gateway already runs omniroute via BWS; 9router was dead/misleading). typecheck + lint + build green.
Description
Bete Discord moderation watcher
28 MiB
Languages
TypeScript
96.9%
Nix
0.9%
Shell
0.8%
CSS
0.6%
PLpgSQL
0.5%
Other
0.3%