From 4c3f494534f5522413f6dbbf5f004d94ae020aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 31 Oct 2024 02:43:04 +0800 Subject: [PATCH] ... --- src/LunaTranslator/translator/sakura.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/LunaTranslator/translator/sakura.py b/src/LunaTranslator/translator/sakura.py index 9bfac359..dad5f8c3 100644 --- a/src/LunaTranslator/translator/sakura.py +++ b/src/LunaTranslator/translator/sakura.py @@ -215,10 +215,7 @@ class TS(basetrans): def translate(self, query): if isinstance(query, dict): gpt_dict = query["gpt_dict"] - if gpt_dict and self.using_gpt_dict: - query = query["contentraw"] - else: - query = query["text"] + query = query["contentraw"] else: gpt_dict = None self.checkempty(["API接口地址"])