Settings

Active adapter

mock-v1

AI Research, Personalization, and Reply Classification all run through the same AiAdapter interface.

The active adapter is deterministic and runs entirely offline โ€” no external API calls, no cost, no API key required.

To switch to a real model: implement the three methods in src/lib/ai/anthropic.ts, set ANTHROPIC_API_KEY, and change the default in getAiAdapter() from 'mock' to 'anthropic'. Every call site already goes through that one function.

Every generation is logged

Every research/personalization/classification call โ€” mock or real โ€” is recorded in ai_generations with its input and output, so behavior stays auditable even before a real model is connected.