If you want to track new updates, check GitLab repository (and an org as a whole, if that's interested you)
Generator service for GenAi Discord bot
Implementation of getMessages (for kkLocal) is made for an abstract usage. If you are using this program in your project (like Discord bot), make sure to store encrypted messages and modify keepers.nim to decrypt lines of messages in getMessages method (more information in keepers.nim)
PORT- which port should be taken by this application (defualt3000)MAX_ATTEMPTS- how much generator can attempt to re-generate text in case of failure (default5)MAX_LINES- how much messages/lines application should request from keeper (default-1- all messages)
REDIS_HOST- address of Redis server (optional, if not specified - rate limit will be ignored)REDIS_PORT- port of Redis server (default6379)
KEEPER_URL- URL address of remote messages storage (optional, should include placeholders:{channel_id},{max_lines}and{clean_uri})KEEPER_PATH- path to folder with{channel_id}.txtmessages files (default/data/messages, ignored ifKEEPER_URLspecified)
- Clone the repository
- Build the docker image
docker build -t genai/message-generator . - Run the docker image and expose port 3000
docker run -v $(pwd)/messages:/data/messages -p 127.0.0.1:3000:3000 genai/message-generator - gg