Back to Vigil

Vigil AI Twitch — Technical Package

Live host: ocean-wind-hazel-jade.grok.me. This page is HTML so ChatGPT can read it. The Vale panel is a separate API session, not the ChatGPT website tab.

What the live app calls

Files

classify.ts, talk.ts, twitch.ts, types.ts, store.ts, engine.ts are in the repo under src/lib/moderation/.

classifyBatch
- input: messages[], apiKey?, provider? openai|xai
- OpenAI: https://api.openai.com/v1/chat/completions model gpt-4o-mini
- xAI: https://api.x.ai/v1/chat/completions model grok-4.5

talkToVale / companionTalk
- input: text, history, room, image, mustAnswer, apiKey, provider, context
- TalkContext: streamerText, recentChat[{user,text}], recentVale[], imageDataUrl
- openai: https://api.openai.com/v1/responses model gpt-4o input_text + input_image
- xai: https://api.x.ai/v1/chat/completions model grok-4.5
- Luna TTS endpoint exists but is disabled

twitch.ts
- wss://irc-ws.chat.twitch.tv:443
- NICK justinfan##### PASS SCHMOOPIIFS
- read-only chat. no Helix delete/timeout/ban

Default channel jsmooth_82. Persist key vigil-mod-v6.