We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Chat history object in current /ask queries is appended endlessly, which can end up exceeding the token limits on most LLM providers.
Truncate the chat history to last 2 conversations, this is sufficient buffer for maintaining context between previous conversations.
The text was updated successfully, but these errors were encountered:
3coins
Successfully merging a pull request may close this issue.
Description
Chat history object in current /ask queries is appended endlessly, which can end up exceeding the token limits on most LLM providers.
Solution
Truncate the chat history to last 2 conversations, this is sufficient buffer for maintaining context between previous conversations.
The text was updated successfully, but these errors were encountered: