From b39ce08b323198f6175095c2182e311894696fe9 Mon Sep 17 00:00:00 2001 From: mnjnhuang <1090031856@qq.com> Date: Fri, 16 Jan 2026 17:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/routers/translate_with_ai.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/routers/translate_with_ai.py b/python/routers/translate_with_ai.py index d48292d..9654b8d 100644 --- a/python/routers/translate_with_ai.py +++ b/python/routers/translate_with_ai.py @@ -100,23 +100,23 @@ class OverwriteServerHandler(ServerHandler): goto_ai_translate_map.update({source_name: value}) match request_handler.translate_model: - case "TencentModelAI": + case "TencentModelAI": # 腾讯AI翻译 tencent_cloud: TencentCloud = TencentCloud() response_dict: dict = tencent_cloud.translate_text_with_ai(goto_translate_map=goto_ai_translate_map) translate_network_map: dict = response_dict.get("translate_map") - case "TencentModelMachine": + case "TencentModelMachine": # 腾讯机器翻译 tencent_cloud: TencentCloud = TencentCloud() response_dict: dict = tencent_cloud.translate_text_with_machine(goto_ai_translate_map) translate_network_map: dict = response_dict.get("translate_map") - case "BaiduModelAI": + case "BaiduModelAI": # 百度AI翻译 baidu_cloud: BaiduCloud = BaiduCloud() response_dict: dict = baidu_cloud.translate_text_with_ai(goto_ai_translate_map) translate_network_map: dict = response_dict.get("translate_map") - case "BaiduModelMachine": + case "BaiduModelMachine": # 百度机器翻译 baidu_cloud: BaiduCloud = BaiduCloud() response_dict: dict = baidu_cloud.translate_text_with_machine(goto_ai_translate_map) translate_network_map: dict = response_dict.get("translate_map") - case "NiuTransModelMachine": + case "NiuTransModelMachine": # 小牛机器翻译 niu_trans: NiuTrans = NiuTrans() response_dict: dict = niu_trans.translate_text_with_machine(goto_ai_translate_map) translate_network_map: dict = response_dict.get("translate_map")