Add more context image levels

This commit is contained in:
Nicolas Mowen 2025-10-28 06:37:33 -06:00
parent 5de671c136
commit f89f024a10

View File

@ -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