LLM connectors allows you to predefine and finetune specific LLM models to be used through CHIM. CHIM comes pre-installed with a recommended set of LLM models from OpenRouter.
CHIM is designed to be connected to these 4 LLM services:
OpenRouter
ChatGPT
Google
NanoGPT
Here you can predefine and setup which API keys, service and settings for each LLM. Also you can see the option to test, as well as export an LLM Connector profile.
Custom Connectors (Advanced User)
If you know what you are doing you can preset you own custom connectors. There are many different AI service providers out there that are compatible with CHIM.
The main issue for compatibility is if their API supports either the OpenAI or OpenRouter standard. Most are leaning to these templates.
In this example here I have an URL to a custom service, using the OpenRouter JSON API template.
Profiles are how we “group” large amount of AI NPCs to use the same settings. We provide some rather powerful settings that allows you to easily group specific types of NPCs to use specific profiles.
Profiles are split into 3 setting groups.
Profile Core
Can configure which Slot (used for ingame hotswapping) and prompts.
You can also set if a profile will be used by default for all new NPCs (only 1 can be default at a time).
Profile Prompt allows you to insert a special roleplaying prompt that only NPCs in this profile will know.
Settings:
Name - Display name for the profile
Slot (1-4) - Quick-access slot for ingame switching
Default NPC - Make this the default profile for new NPCs (only 1 can be default)
Default Narrator - Use this profile for The Narrator (only 1 can be default)
Dynamic Profile - Allow AI systems to evolve NPC bios based on gameplay
Middle-Term Memory - Save a list of recent events after memory summaries
Auto Diary - Automatically generate diary entries during sleep/wait
Auto Diary Wait - Control whether wait events trigger diary entries
Profile Prompt - Custom system instructions for NPCs in this profile
Profile LLM Connectors
You can set multiple different connectors per profile. The first 4 are the main connectors for AI roleplay, we have categorized them into specific categorizes.
🕹️Standard - For all round and efficent LLM models.
🏃➡️Fast - For faster and usally smaller LLM models. Good for combat.
💪Powerful - For more intelligent and smart LLM models. Good for deep conversation.
🧪Experimental - More wacky and unhinged LLMs.
You can also edit LLM connectors here.
Ingame you can switch which of these 4 profiles ALL AI NPCs will use.
In the MCM if you use the Settings Wheel while not looking at an NPC you can change which LLM model are used among ALL AI NPCs.
Q: Can I set a specific AI NPC to use a specific LLM model instead of globally changing them?
A: No. This is a deliberate decision to avoid complication of tracking models amongst 1000+ NPCs ingame. LLM models can only ever be configured globally. If you want a specific NPC to always use a specific LLM you can:
Create a special profile for them.
Set all the LLMs for all 4 connectors to be the exact same. With this no matter what mode you use this NPC will always use a specific model.
Q: Do I need to follow the Standard/Fast/Powerful/Experimental categories for my LLM selections?
A: No! You can put whatever LLMs you want in these categorizes. These are just our recommendations.
The other 2 LLM connectors for profiles are:
📔Diary - Used for writing diaries.
📃Formatter - Helps parse JSON output for background tasks. Just use a very small LLM.
Profile Settings
These are general roleplaying settings for AI NPCs within this profile.
Example of some of the settings.
Profile Slots
You can select up to 4 profiles to be in quickslot slots. These allow you to change AI NPCs profiles ingame.
Looking at an AI NPC and clicking the are Settings Wheel MCM hotkey allows you to change their profile.
Profile Rules
Profiles rules are advanced settings that allow you set special rules for applying NPC profiles to new NPCs. These will override the default NPC profile if the NPC matches the rule.
Example: Any males from the Myfollowermode.esp will use the Follower Profile when imported.
LLM Randomizer
LLM Randomizer is a useful toggle that makes it so the LLM's within a profile will be switched at random among all NPCs using that profile.
It can be useful to help “spice up” AI roleplay as different models will role-play differently.
Using this can help deal with repetitiveness that is common amongst AI models.
Its recommend to ignore the standard/fast/powerful/experimental dynamic and just pick 4 models that are similar.
Example:
Herika is on the randomizer
Randomizer picks the LLM in the Standard profile
Herika will speak 2-3 events using the Standard LLM before switching
This menu allows you to configure each AI NPC within CHIM. There is quite a lot you can do here…
You can see NPC settings, their level and other attributes. ⭐- Favorite an NPC 🔒- Prevent an NPC from being deleted. 🗑️ - Delete an NPC 🖼️- Change their profile picture from the Soulgaze Gallery
You can configure all settings for an NPC when you click their profile.
Each NPC has biography settings you can configure and edit.NPCs will also have their stats, skills, equipment and inventory tracked as close to real time as we can. Most of this information is used in the roleplaying prompts.
NPC Card Features:
⭐ Favorite - Pin important NPCs to the top
🔒 Lock - Prevent NPC from being deleted during DragonBreaks
🗑️ Delete - Remove NPC from database
🖼️ Portrait - Set profile picture from Soulgaze Gallery
Build Relationships - AI-analyze relationships for multiple NPCs
We track the history of changes made to AI NPC profiles. This is primarily for dynamic profiles, so you can see the evolution an AI NPC has taken over the course of gameplay.You can create new NPC profiles very easily. You can use the NPC Biographies table to import new NPCs with preset settings.
We save a lot of information about NPCs. Their inventory, equipment, magic, stats, etc…
However we only save their name and baseid. Unless you use Soulgaze the AI will have no real idea what this stuff looks like!
So we have the description manager. It is rather simple.
Anything ingame that has a baseid can be visually described. If that item, armor, magic event is included in the AI context the description will be attached.
A basic example with an Iron Sword
Supported Description Types:
Weapons, Armor, Clothing
Potions, Ingredients, Food
Books, Notes, Scrolls
Spells, Enchantments
Creatures, Animals
Locations, Architecture
Features:
Manual entry with Base ID and description
CSV bulk import
Mod support - CSVs can be bundled with mods for auto-import
Descriptions are injected into AI context when items are referenced
Just like with NPC bios you can create a csv file of a list of items and import them into the description manager.