This commit is contained in:
恍兮惚兮 2024-10-31 02:30:23 +08:00
parent 70aa8e78dc
commit 1a1d977de5
2 changed files with 2 additions and 7 deletions

View File

@ -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)

View File

@ -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"]