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

fix: More Messages returned fetchMessagesAfterSummaryPoint than memoryWindow #238

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

danielchalef
Copy link
Member

@danielchalef danielchalef commented Oct 19, 2023

When Summaries are not created fast enough, fetchMessagesAfterSummaryPoint may return more messages than the memoryWindow. This modification always limits the number of returned messages to the memoryWindow.

Impacts:

  • Ensures developers can more accurately manage prompt size
  • There may be gaps in the conversations history if messageCount > memoryWindow and no summary has been created yet.

@danielchalef danielchalef temporarily deployed to build-test October 19, 2023 18:29 — with GitHub Actions Inactive
@danielchalef danielchalef merged commit 04d4698 into main Oct 19, 2023
5 checks passed
@danielchalef danielchalef deleted the fix/message-window-get-messages branch October 19, 2023 18:35
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

Successfully merging this pull request may close these issues.

None yet

1 participant