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

[model] allow forgetting older conversations within same context when approaching token limit #36

Closed
signebedi opened this issue Mar 28, 2023 · 1 comment

Comments

@signebedi
Copy link
Owner

Using the ChatCompletion method #31, keyword tokenization #25 doesn't really work because each element of the conversation is divided into constituent parts, rendering frequency counters less useful.

Instead, we should add a forget_old_context bool config that tells gptty.context:get_context to drop the oldest elements of a conversation when approaching the max_context_length.

@signebedi
Copy link
Owner Author

Honestly, we can just make this the default behavior (unless we want a config for this) be reversing the order in which we read lines in gptty.context:get_config...

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

1 participant