Hi.
I got brief inspiration due this question at OpenAi discussion forums.
SystemMessageManager: Overview
The SystemMessageManager
is a Python/nodejs class designed to manage system messages in a structured and flexible way. These messages, which are organized by “roles,” can be retrieved, modified, saved, and loaded as needed. The class ensures that a default system message is always preserved and provides features like backups for data integrity.
Link to github: EkBass/SystemMessageManager