From 20084c4f436a37a9af1cc753a2b1f4e0ffd571cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 16 Mar 2024 12:57:22 +0800 Subject: [PATCH] Update sakura.py --- LunaTranslator/LunaTranslator/translator/sakura.py | 1 - 1 file changed, 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/translator/sakura.py b/LunaTranslator/LunaTranslator/translator/sakura.py index 1b49e5b1..51e45de0 100644 --- a/LunaTranslator/LunaTranslator/translator/sakura.py +++ b/LunaTranslator/LunaTranslator/translator/sakura.py @@ -135,7 +135,6 @@ class TS(basetrans): raise ValueError(f"Error: {str(e1)}. 无法连接到Sakura API:{self.api_url},请检查你的API链接是否正确填写,以及API后端是否成功启动。") def translate(self, query): - self.checkempty(['API接口地址']) self.timeout = self.config['API超时(秒)'] self.api_url='http://127.0.0.1:{}/v1'.format(self.config['端口号']) frequency_penalty = float(self.config['frequency_penalty'])