chore: increase character limit to 4000 in createPrompt function

This commit is contained in:
Will Hohyon Ryu 2024-03-07 19:01:32 -08:00
parent 871e421ec8
commit 271056abf4

View file

@ -67,7 +67,7 @@ async function analyzeCode(
if (file.to === "/dev/null") continue; // Ignore deleted files
for (const chunk of file.chunks) {
// Ignore diffs longer than 2000 characters
if (chunk.content.length > 2000) continue;
if (chunk.content.length > 4000) continue;
const prompt = createPrompt(file, chunk, prDetails);
const aiResponse = await getAIResponse(prompt);