diff --git a/frigate/data_processing/post/review_descriptions.py b/frigate/data_processing/post/review_descriptions.py index 4c6626b77..b46a091ee 100644 --- a/frigate/data_processing/post/review_descriptions.py +++ b/frigate/data_processing/post/review_descriptions.py @@ -58,7 +58,11 @@ class ReviewDescriptionProcessor(PostProcessorApi): # With recordings at 480p resolution (480px height), each image uses ~200-300 tokens # This is ~2-3x more than preview images, so we reduce frame count accordingly # to avoid exceeding context limits and maintain reasonable inference times - if context_size > 10000: + if context_size > 14000: + return 16 + elif context_size > 12000: + return 14 + elif context_size > 10000: return 12 elif context_size > 6000: return 10