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