-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
getRecentPostInteractions returning all memory #2253
Comments
Hello @rferrari! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor! |
In theory the recent interactions should already be limited to the 20 latest here:
This is whats passed to getRecentPostInteractions. So not sure why everything is getting passed. I do remember seeing rate limits as well, but I also had other code changes so not sure if it's the same underlying issue. |
there's an inefficiency in memory retrieval, so will fix this issue at the same time |
@rferrari what database are you using? it seems the limit parameter is being lost between layers, as the type definition has it, but the underlying database adapter doesn't. At least for sqlite and likely many others. |
Is your feature request related to a problem? Please describe.
I`m not sure if this is a BUG or intent, but looks like runtime.ts getRecentPostInteractions return all memory. It was overloading my model with more than 20k tokens each time it try to create a new post.
So, it stopped creating new posts due Model Rate Limits per minute.
Describe the solution you'd like
A workarround i found so far, was to limit the getRecentPostInteractions with a setting like this:
Describe alternatives you've considered
I
m not sure if is the best solution as i
m still learning Eliza Framework. Maybe a more experience dev can check on that.Additional context
The text was updated successfully, but these errors were encountered: