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

AI Sliding Window #1151

Merged
merged 4 commits into from
Oct 27, 2024
Merged

AI Sliding Window #1151

merged 4 commits into from
Oct 27, 2024

Conversation

oneirocosm
Copy link
Member

Only send the 30 most recent ai questions and responses to the model when making requests. This prevents the amount of data being sent from getting too big.

fetchAiData is the earliest place it makes sense to do this since
the file is loaded before each message is sent.
This ensures that incomplete messages will show up before errors, even
on a reload.
@sawka sawka merged commit bbd530c into main Oct 27, 2024
6 checks passed
@sawka sawka deleted the sylvie/ai-sliding-window branch October 27, 2024 18:49
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.

2 participants