This commit is contained in:
恍兮惚兮 2024-10-31 02:43:04 +08:00
parent 97c34fd0ce
commit 4c3f494534

View File

@ -215,10 +215,7 @@ class TS(basetrans):
def translate(self, query): def translate(self, query):
if isinstance(query, dict): if isinstance(query, dict):
gpt_dict = query["gpt_dict"] gpt_dict = query["gpt_dict"]
if gpt_dict and self.using_gpt_dict: query = query["contentraw"]
query = query["contentraw"]
else:
query = query["text"]
else: else:
gpt_dict = None gpt_dict = None
self.checkempty(["API接口地址"]) self.checkempty(["API接口地址"])