diff --git a/docutranslate/agents/agent.py b/docutranslate/agents/agent.py index b6e7d83..e8912be 100644 --- a/docutranslate/agents/agent.py +++ b/docutranslate/agents/agent.py @@ -79,9 +79,9 @@ class Agent: "open.bigmodel.cn": ("thinking", {"type": "enabled"}, {"type": "disabled"}), "dashscope.aliyuncs.com": ("enable_thinking ", True, False), "ark.cn-beijing.volces.com": ("thinking", {"type": "enabled"}, {"type": "disabled"}), - "https://generativelanguage.googleapis.com/v1beta/openai/": ("generationConfig", - {"thinkingConfig": {"thinkingBudget": -1}}, - {"thinkingConfig": {"thinkingBudget": 0}}) + "generativelanguage.googleapis.com": ("generationConfig", {"thinkingConfig": {"thinkingBudget": -1}}, + {"thinkingConfig": {"thinkingBudget": 0}}), + "api.siliconflow.cn": ("enable_thinking", True, False) } def __init__(self, config: AgentConfig): @@ -185,7 +185,8 @@ class Agent: ) -> list[Any]: max_concurrent = self.max_concurrent if max_concurrent is None else max_concurrent total = len(prompts) - self.logger.info(f"base-url:{self.baseurl},model-id:{self.model_id},concurrent:{self.max_concurrent},temperature:{self.temperature}") + self.logger.info( + f"base-url:{self.baseurl},model-id:{self.model_id},concurrent:{self.max_concurrent},temperature:{self.temperature}") self.logger.info(f"预计发送{total}个请求,并发请求数:{max_concurrent}") self.total_error_counter.max_errors_count = len(prompts) // MAX_REQUESTS_PER_ERROR # 允许多少个异常 count = 0 @@ -278,7 +279,8 @@ class Agent: result_handler: ResultHandlerType = None, error_result_handler: ErrorResultHandlerType = None ) -> list[Any]: - self.logger.info(f"base-url:{self.baseurl},model-id:{self.model_id},concurrent:{self.max_concurrent},temperature:{self.temperature}") + self.logger.info( + f"base-url:{self.baseurl},model-id:{self.model_id},concurrent:{self.max_concurrent},temperature:{self.temperature}") self.logger.info(f"预计发送{len(prompts)}个请求,并发请求数:{self.max_concurrent}") self.total_error_counter.max_errors_count = len(prompts) // MAX_REQUESTS_PER_ERROR # 允许多少个异常 # 创建单个计数器实例 diff --git a/docutranslate/static/index.html b/docutranslate/static/index.html index 863dc72..96ef6e2 100644 --- a/docutranslate/static/index.html +++ b/docutranslate/static/index.html @@ -1 +1 @@ - DocuTranslate - 交互式文档翻译

DocuTranslate

如果上传的文件本身是.md格式,此项可不选。
mineru VLM是更新的内测模型。

选择一个或多个CSV文件。文件需包含'src'和'dst'两列标题,分别代表原文和译文。

GitHub主页(欢迎star❤):
https://github.com/xunbu/docutranslate

交流QQ群: 1047781902

version:

任务列表

LOGO

当前没有任务,点击“新建任务”开始吧!

预览
原文
译文
\ No newline at end of file + DocuTranslate - 交互式文档翻译

DocuTranslate

如果上传的文件本身是.md格式,此项可不选。
mineru VLM是更新的内测模型。

选择一个或多个CSV文件。文件需包含'src'和'dst'两列标题,分别代表原文和译文。

GitHub主页(欢迎star❤):
https://github.com/xunbu/docutranslate

交流QQ群: 1047781902

version:

任务列表

LOGO

当前没有任务,点击“新建任务”开始吧!

预览
原文
译文
\ No newline at end of file