This commit is contained in:
恍兮惚兮 2024-07-24 15:29:25 +08:00
parent 07358d83c4
commit 33e715a1d0
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class TS(basetrans):
temperature = 0.3
if self.config["使用自定义promt"]:
message = [{"role": "user", "content": self.config["自定义promt"]}]
message = [{"role": "system", "content": self.config["自定义promt"]}]
else:
message = [
{

View File

@ -114,7 +114,7 @@ class gptcommon(basetrans):
self.contextnum = int(self.config["附带上下文个数"])
if self.config["使用自定义promt"]:
message = [{"role": "user", "content": self.config["自定义promt"]}]
message = [{"role": "system", "content": self.config["自定义promt"]}]
else:
message = [
{

View File

@ -117,7 +117,7 @@ class TS(basetrans):
self.contextnum = int(self.config["context_num"])
if self.config["use_user_prompt"]:
message = [{"Role": "user", "Content": self.config["user_prompt"]}]
message = [{"Role": "system", "Content": self.config["user_prompt"]}]
else:
message = [
{