From b168d5e92baa08f04a6a27fbb91dda9be42cb2ea Mon Sep 17 00:00:00 2001 From: egg Date: Fri, 6 Feb 2026 05:39:44 +0000 Subject: [PATCH] Use opus for all PR reviews --- action/build-review-prompt.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/action/build-review-prompt.sh b/action/build-review-prompt.sh index 0b450b8dbd..879bd82bd3 100755 --- a/action/build-review-prompt.sh +++ b/action/build-review-prompt.sh @@ -22,7 +22,6 @@ set -euo pipefail MAX_DIFF_CHARS=15000 # Per-file diff limit MAX_FILE_CHARS=30000 # Per-file content limit MAX_PROMPT_CHARS=100000 # Overall prompt limit -MODEL_THRESHOLD_FILES=5 # Use opus for PRs with more than this many files # Files to skip (generated, binary, lock files) SKIP_PATTERNS=( @@ -221,11 +220,8 @@ build_prompt() { local file_count file_count=$(echo "$files_json" | jq 'length') - # Determine model based on file count - local model="haiku" - if [[ "$file_count" -gt "$MODEL_THRESHOLD_FILES" ]]; then - model="opus" - fi + # Always use opus for reviews + local model="opus" # Fetch review rules local review_rules