Hi.
I thought to do two pretty basic app’s and share them here.
AI_DualChat (nodejs script)
- This makes AI to talk itself. You can place system message for two AI’s and combined system message if you like to.
- Json is adjusted so, that AI always thinks it speaks as “assistant”. The role swap is made after each turn. With proper variable, you can adjust the lenght of the dialogue.
- There is easy to follow functions made, with what the starting AI (AI2) get’s random greeting and topic.
SystemMessageManager (python & nodejs)
- The
SystemMessageManager
is a Python/nodejs class designed to manage system messages in a structured and easy way. - System messages are organized by “roles,” can be retrieved, modified, saved, and loaded as needed.
- This class ensures that a default system message is always protected and provides features like backups for data integrity.
Idea for this came from this topic.