Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the AI can't remember previous messages sent to or from it. #2

Open
tony-mathias-buchanan opened this issue Sep 27, 2024 · 3 comments

Comments

@tony-mathias-buchanan
Copy link

is there any way to fix this? I'm planning on just adding all messages to a single prompt to the character, but i get the feeling that it will significantly slow everything down.

@RedPiarOfficial
Copy link
Owner

Are you using the Room() function? Let's assume you are. At the end, do you declare saving the history with saveHistory?

If you're using Room in a single session, the data gets deleted after a restart because "Temporary memory" is being used. To save the data, you need to call .saveHistory(), and then load the created file into Room with the parameter history_path:
Room(history_path="./history.json").

I'm not denying the fact that the error could be on our side, but without additional information from you, it's hard to say anything for sure.

Actually, there can be many nuances, but I'll work on optimizing all of this a bit later.

@tony-mathias-buchanan
Copy link
Author

What's the room function? I've just been using the create completion function from the documentation

@RedPiarOfficial
Copy link
Owner

I am almost certain that you will find the solutions by reading this:
https://red-3.gitbook.io/freegptfix/lib/room

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants