Codium-ai / pr-agent

🚀CodiumAI PR-Agent: An AI-Powered 🤖 Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! 💻🔍
Apache License 2.0
5.76k stars 534 forks source link

how to deal with token limitation #112

Closed sheenhx closed 1 year ago

sheenhx commented 1 year ago

hey is there anyway to deal with token limitation

mrT23 commented 1 year ago

We have an extensive compression strategy to deal with token limitation, see: https://github.com/Codium-ai/pr-agent/blob/main/PR_COMPRESSION.md

In practice, for small-to-medium PRs, our compression strategy works well with a limitation of 8K tokens. For very large PRs (tenths of files), some files may be overlooked.

You can always switch to a model with a larger context, like 'gpt-3.5-turbo-16k-0613' or 'gpt-4-32k'.