sturdy-dev / codereview.gpt

Reviews your Pull/Merge Requests using ChatGPT
MIT License
529 stars 63 forks source link

[Enhancement] Improve prompt to send large patches in multiple prompts to avoid token limit #19

Closed nickveenhof closed 1 year ago

nickveenhof commented 1 year ago

I think it would be good if we parse the fetched diff using https://github.com/sergeyt/parse-diff so that each hunk can be send individually, allowing us to send more context to GPT.

It was mentioned before, but maybe there are other prompt engineering techniques we can leverage from https://thakkarparth007.github.io/copilot-explorer/posts/copilot-internals.html.

nickveenhof commented 1 year ago

This was committed in #20