From f89f024a1087896c99f940bf9182d2f9163c81a8 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 28 Oct 2025 06:37:33 -0600 Subject: [PATCH] Add more context image levels --- frigate/data_processing/post/review_descriptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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