This commit is contained in:
xunbu
2025-05-10 16:46:06 +08:00
parent f05a4784f1
commit e025c23daf
5 changed files with 14 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ from docutranslate.utils.markdown_utils import uris2placeholder, placeholder2_ur
class FileTranslater:
def __init__(self, file_path: Path | str | None = None, chunksize: int = 5000, base_url="", key=None,
def __init__(self, file_path: Path | str | None = None, chunksize: int = 3500, base_url="", key=None,
model_id="", temperature=0.7, max_concurrent=10, docling_artifact: Path | str | None = None,
timeout=2000, tips=True):
if isinstance(file_path, str):