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