Skip to content

Commit bac1a24

Browse files
authored
Merge pull request #350 from funstory-ai/dev
fix: reduce maximum paragraph count for translation batch processing
2 parents e2d7c3b + 991d774 commit bac1a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

babeldoc/document_il/midend/il_translator_llm_only.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def process_page(
177177
copy.deepcopy(paragraph)
178178
)
179179

180-
if total_token_count > 200 or len(paragraphs) > 10:
180+
if total_token_count > 200 or len(paragraphs) > 5:
181181
executor.submit(
182182
self.translate_paragraph,
183183
BatchParagraph(paragraphs, tracker),

0 commit comments

Comments
 (0)