Compare commits

...
Author SHA1 Message Date
Nat 30e258704e DEV: Increase chunk size before splitting content for translation 2025-06-18 23:53:10 +08:00
+1 -1
View File
@@ -3,7 +3,7 @@
module DiscourseAi module DiscourseAi
module Translation module Translation
class ContentSplitter class ContentSplitter
CHUNK_SIZE = 3000 CHUNK_SIZE = 10_000
BBCODE_PATTERNS = [ BBCODE_PATTERNS = [
%r{\[table.*?\].*?\[/table\]}m, %r{\[table.*?\].*?\[/table\]}m,