Skip to content

Commit d53f42b

Browse files
committedApr 22, 2025
fixed abort condition for chunk summarizer
1 parent 9c48164 commit d53f42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hierarchical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def forward(self, **kwargs) -> Summary:
407407
chunk_size = self.calculate_chunk_size(total_tokens)
408408

409409
if total_tokens > chunk_size:
410-
summary_token_count = self._max_context_tokens() + 1
410+
summary_token_count = self.max_output_tokens + 1
411411
data = self.content
412412
doc_type = None
413413

0 commit comments

Comments
 (0)
Please sign in to comment.