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

Reduce the size of message history #42

Open
brichet opened this issue Feb 14, 2025 · 0 comments
Open

Reduce the size of message history #42

brichet opened this issue Feb 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@brichet
Copy link
Collaborator

brichet commented Feb 14, 2025

Problem

When sending a message in the chat, the whole history is included in the message list for context. This can lead to a huge number of messages.

Proposed Solution

We should probably add a limit to the number of messages, that could be configurable with a setting.
A default value could be the last 2 messages send by the user and their responses.

Additional context

For comparison, in jupyter-ai the default value is 2 https://github.com/jupyterlab/jupyter-ai/blob/7b4586ef2adc560b457731ae07be87e348a8769e/packages/jupyter-ai/jupyter_ai/extension.py#L211

Initial discussion #41 (comment)

@brichet brichet added the enhancement New feature or request label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant