dmkilday / GameMaster-GPT

GameMasterGPT is an exciting new open-source project aimed at revolutionizing the world of role-playing games (RPGs) by introducing an AI-powered Game Master. With the power of OpenAI's cutting-edge language model, this project enables the creation and facilitation of immersive RPG adventures like never before.
GNU General Public License v3.0
5 stars 1 forks source link

Adventure json processing #5

Open depwl9992 opened 1 year ago

depwl9992 commented 1 year ago
  1. For each step and user interaction made, dump to a text log.
  2. To avoid hitting the max token length error or exponentially increasing transaction sizes of longer adventures, remove oldest entries from the dialog object (they will still be stored in the local log).
  3. On Session Start, read the last entries of the log, stepping backward in time until the setting can be recalled.

Logs saved with log and exit are now readable via the new main menu, option 2. Needs a bit of cleanup, and logs saved with 4096 tokens will automatically fill the token limit. Somehow marking the premise and character sheet as "non-volatile" would be useful if we plan on making this a rolling log (provided that we don't figure out Davinci training first).