AI Integration
AI Integration generates in-character replies for @bot mentions, !ask, Point Redemption AI replies, Bot Messages AI lines, Discord @mentions, and Bot Overlay.
Zip: ai-integration.zip
Third-party requirements
You need one of the following as an AI Account.
| AI Provider | What you supply |
|---|---|
| OpenAI | An API key that starts with sk-, plus a chat model from the list. Cheaper models cost less per reply. GPT-5.6 models only work if your OpenAI project has them turned on. |
| OpenRouter | An API key and a model id such as openai/gpt-4o-mini. |
| Ollama (local) | A LAN base URL with port, for example http://192.168.1.50:11434, and the exact model tag from ollama list. Ollama must listen on the LAN. Set OLLAMA_HOST=0.0.0.0. |
| Local OpenAI-compatible API | Scheme, IP, and port only, for example http://192.168.1.20:8080. No API key. No model name. GRiMbOS adds /v1/chat/completions. The server already has a model loaded. |
AI Accounts
Open AI Settings → Provider Setup. Click New, name the account, pick the provider, and fill what that type needs. Click Set as Default on the account live replies should use. Optional Set as Fallback must be a different account. Fallback is not used automatically when Default fails. The alias fallback still means that account.
Tick Ai Enabled. Click Save. Click Test.
Response Setup picks an AI Account by name for each feature. It also sets reply length and the Fallback message. That fallback message is the chat line when generation fails. It is not the Fallback AI Provider.
Other windows
Bot Personality holds personality markdown and generation sliders. Style presets change how loose the wording is. They do not replace the personality text. Test Prompt is a scratch chat log that clears when you close the window.
Member Memory stores per-chatter notes and an auto-generated profile. Refresh with AI rebuilds the profile from recent chat.
Stream Memory stores public recaps of finished streams, a live cache of the current stream, Opening Chat podium, and recent chatter activity. It lets the bot answer questions about previous streams from recorded public data instead of inventing history. Toggle and limits are on the Settings tab.
Ai Chat Logs is a dated archive of prompts and replies. Delivery channels include Bot Overlay, Twitch, Discord, and Test Prompt.
Chat
The default command is !ask. Change the name on Response Setup without the !. Memory phrases such as "remember that" can store notes automatically.
Point Redemptions
AI Bot Response uses this plugin. Viewer input becomes the question when the reward requires it. Member Memory and Favorite Streamer notes are included when they exist.