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

After having a too long conversation you start exceeding the token limit #20

Open
TinQ0 opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@TinQ0
Copy link

TinQ0 commented Mar 20, 2024

I don't know whether yack shorts the answers to fit within the token requirements of certain models, however after having a long continuous discussion (think 7+ long questions and/or answers) chatgpt will return an error stating the token limit is exceeded.

@rajatkulkarni95
Copy link
Owner

So it doesn't strip earlier conversations when sending them for "context".

It'd probably be helpful to maybe restrict the last 10-15 chat messages when sending the new message for context, so that token limits don't get exhausted.

Probably just have to do an array.slice when sending message conversations to the stream

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

2 participants