mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
...
This commit is contained in:
parent
97c34fd0ce
commit
4c3f494534
@ -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接口地址"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user