mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
shit
This commit is contained in:
parent
70aa8e78dc
commit
1a1d977de5
@ -318,12 +318,7 @@ class basetrans(commonbase):
|
||||
|
||||
return functools.partial(__maybeshow, callback)
|
||||
|
||||
def translate_and_collect(
|
||||
self,
|
||||
contentsolved: str | dict,
|
||||
is_auto_run,
|
||||
callback,
|
||||
):
|
||||
def translate_and_collect(self, contentsolved, is_auto_run, callback):
|
||||
if isinstance(contentsolved, dict):
|
||||
if self._compatible_flag_is_sakura_less_than_5_52_3:
|
||||
query_use = json.dumps(contentsolved)
|
||||
|
@ -212,7 +212,7 @@ class TS(basetrans):
|
||||
|
||||
yield res
|
||||
|
||||
def translate(self, query: str | dict):
|
||||
def translate(self, query):
|
||||
if isinstance(query, dict):
|
||||
gpt_dict = query["gpt_dict"]
|
||||
contentraw = query["contentraw"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user