Skip to content

Commit ef6631b

Browse files
committed
TOKEN_LIMIT_PER_FRAGMENT修改为1024
1 parent 0801e4d commit ef6631b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crazy_functions/批量翻译PDF文档_NOUGAT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, syst
9393
def 解析PDF_基于NOUGAT(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt):
9494
import copy
9595
import tiktoken
96-
TOKEN_LIMIT_PER_FRAGMENT = 512
96+
TOKEN_LIMIT_PER_FRAGMENT = 1024
9797
generated_conclusion_files = []
9898
generated_html_files = []
9999
DST_LANG = "中文"

crazy_functions/批量翻译PDF文档_多线程.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, syst
5959

6060
def 解析PDF_基于GROBID(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, grobid_url):
6161
import copy, json
62-
TOKEN_LIMIT_PER_FRAGMENT = 512
62+
TOKEN_LIMIT_PER_FRAGMENT = 1024
6363
generated_conclusion_files = []
6464
generated_html_files = []
6565
DST_LANG = "中文"
@@ -83,7 +83,7 @@ def 解析PDF(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot,
8383
此函数已经弃用
8484
"""
8585
import copy
86-
TOKEN_LIMIT_PER_FRAGMENT = 512
86+
TOKEN_LIMIT_PER_FRAGMENT = 1024
8787
generated_conclusion_files = []
8888
generated_html_files = []
8989
from crazy_functions.crazy_utils import construct_html

0 commit comments

Comments
 (0)