Skip to content

Commit 57e2d7a

Browse files
fix: increase MAX_DIFF_SIZE default from 800KB to 5MB
Allows larger PRs to be reviewed without manual configuration. The 800KB limit was too restrictive for many real-world PRs.
1 parent 3beb794 commit 57e2d7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ai-reviewer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
AI_MODEL="${AI_MODEL:-moonshotai/kimi-k2-thinking}"
3030
AI_TEMPERATURE="${AI_TEMPERATURE:-0.1}"
3131
AI_MAX_TOKENS="${AI_MAX_TOKENS:-64000}"
32-
MAX_DIFF_SIZE="${MAX_DIFF_SIZE:-800000}" # 800KB default limit (~200K tokens, matching model context size)
32+
MAX_DIFF_SIZE="${MAX_DIFF_SIZE:-5000000}" # 5MB default limit (allows large PRs while preventing excessive API usage)
3333
EXCLUDE_FILE_PATTERNS="${EXCLUDE_FILE_PATTERNS:-*.lock,*.min.js,*.min.css,package-lock.json,yarn.lock}"
3434

3535
# Read diff content from stdin

0 commit comments

Comments
 (0)