This commit is contained in:
恍兮惚兮 2024-10-31 02:39:39 +08:00
parent 1a1d977de5
commit 97c34fd0ce
2 changed files with 4 additions and 5 deletions

View File

@ -215,13 +215,12 @@ class TS(basetrans):
def translate(self, query):
if isinstance(query, dict):
gpt_dict = query["gpt_dict"]
contentraw = query["contentraw"]
query = query["text"]
if gpt_dict and self.using_gpt_dict:
query = contentraw
query = query["contentraw"]
else:
query = query["text"]
else:
gpt_dict = None
contentraw = query
self.checkempty(["API接口地址"])
self.get_client(self.config["API接口地址"])
frequency_penalty = float(self.config["frequency_penalty"])

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 53)
set(VERSION_PATCH 0)
set(VERSION_PATCH 1)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)