From 271056abf4bae15b7e71284a9bf4b4dcec7d801b Mon Sep 17 00:00:00 2001 From: Will Hohyon Ryu Date: Thu, 7 Mar 2024 19:01:32 -0800 Subject: [PATCH] chore: increase character limit to 4000 in createPrompt function --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index f971d45..60e1a83 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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);