art-from-the-machine / Mantella

Mantella is a Skyrim and Fallout 4 mod which allows you to naturally speak to NPCs using Whisper (speech-to-text), LLMs (text generation), and xVASynth / XTTS (text-to-speech).
https://art-from-the-machine.github.io/Mantella/
GNU General Public License v3.0
164 stars 41 forks source link

Add "close friend" trust level for in-game relationship rank #237

Closed art-from-the-machine closed 1 week ago

art-from-the-machine commented 4 months ago

"trust" is used to tell an LLM how well a given NPC knows the player:

https://github.com/art-from-the-machine/Mantella/blob/d9973e3fb0d1fc6979f7b5bc6f8db64bee82f988/src/conversation/context.py#L93

When checking the length of Mantella conversations histories, there is a "close friend" level, but this level does not exist for the npc.relationship_rank check. This "close friend" level needs to be also added for npc.relationship_rank.