mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
ab8cf84a65
commit
b16ab75dca
@ -104,13 +104,16 @@ class TS(basetrans):
|
|||||||
]
|
]
|
||||||
self._gpt_common_parse_context(messages, self.context, contextnum)
|
self._gpt_common_parse_context(messages, self.context, contextnum)
|
||||||
gpt_dict_raw_text = self.make_gpt_dict_text(gpt_dict)
|
gpt_dict_raw_text = self.make_gpt_dict_text(gpt_dict)
|
||||||
content = (
|
if gpt_dict_raw_text:
|
||||||
"根据以下术语表(可以为空):\n"
|
content = (
|
||||||
+ gpt_dict_raw_text
|
"根据以下术语表(可以为空):\n"
|
||||||
+ "\n"
|
+ gpt_dict_raw_text
|
||||||
+ "将下面的日文文本根据对应关系和备注翻译成中文:"
|
+ "\n"
|
||||||
+ query
|
+ "将下面的日文文本根据对应关系和备注翻译成中文:"
|
||||||
)
|
+ query
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
content = "将下面的日文文本翻译成中文:" + query
|
||||||
messages.append({"role": "user", "content": content})
|
messages.append({"role": "user", "content": content})
|
||||||
return messages
|
return messages
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user