Skip to content

Commit

Permalink
adjust max_token_limit for pdf translation plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Oct 21, 2024
1 parent 4727113 commit 69f3755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/Markdown_Translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def 多文件翻译(file_manifest, project_folder, llm_kwargs, plugin_kwargs, ch
pfg.file_contents.append(file_content)

# <-------- 拆分过长的Markdown文件 ---------->
pfg.run_file_split(max_token_limit=2048)
pfg.run_file_split(max_token_limit=1024)
n_split = len(pfg.sp_file_contents)

# <-------- 多线程翻译开始 ---------->
Expand Down

0 comments on commit 69f3755

Please sign in to comment.