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")