第一次合并clean代码

This commit is contained in:
2025-01-18 17:09:51 +08:00
parent e33a8b069e
commit a0f5ca9a35
21 changed files with 2252 additions and 375 deletions

18
config.py Normal file
View File

@@ -0,0 +1,18 @@
class ConfigFactory:
def __init__(self):
pass
class ReparagraphConfig(ConfigFactory):
"""配置类"""
def __init__(self):
self.remove_refs = False
self.max_file_size = 10 * 1024 * 1024 # 10MB
self.backup = True
self.dry_run = False
self.parallel = False
self.task_name = "result_reparagraph"
self.openai_base_url = None
self.openai_api_key = None
self.model_name = None
self.max_retries = 5