mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
07358d83c4
commit
33e715a1d0
@ -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 = [
|
||||
{
|
||||
|
@ -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 = [
|
||||
{
|
||||
|
@ -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 = [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user