room
Room - probably the most interesting feature introduced in version 1.1.0 (the first version to include Room). Room creates a space for interacting with the AI. While you're in the room, the AI retains memory and chat history, but you can also upload your own chat history.
Examples of creating a simple room:
Examples of loading history into a room (history that was saved using room.saveHistory()
):
In this example, we load the history into the room. After making a request and receiving a response from GPT, we save this history back to the file, and this process repeats after each request.
Last updated