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 costs by limiting to only past 2 messages from history #84

Open
ofirkris opened this issue Jun 16, 2023 · 1 comment
Open

Reduce costs by limiting to only past 2 messages from history #84

ofirkris opened this issue Jun 16, 2023 · 1 comment

Comments

@ofirkris
Copy link

Currently the entire conversations context is sent to OpenAI API which causes high costs per GPT4 query, how can we limit the context to only last two messages?

@fbaptista
Copy link

If you want to avoid sending the entire context, what about just starting a new conversation?

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