fix: xh prompt turn to system role

This commit is contained in:
ikechan8370 2024-02-01 22:50:16 +08:00
parent 8ec1ee4c1e
commit 8cc7105f2d

View file

@ -395,7 +395,7 @@ export default class XinghuoClient {
logger.warn('星火设定序列化失败,本次对话不附带设定')
}
} else {
Prompt = Config.xhPrompt ? [{ role: 'user', content: Config.xhPrompt }] : []
Prompt = Config.xhPrompt ? [{ role: 'system', content: Config.xhPrompt }] : []
}
if (Config.xhPromptEval) {
Prompt.forEach(obj => {