mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: xh prompt turn to system role
This commit is contained in:
parent
8ec1ee4c1e
commit
8cc7105f2d
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ export default class XinghuoClient {
|
||||||
logger.warn('星火设定序列化失败,本次对话不附带设定')
|
logger.warn('星火设定序列化失败,本次对话不附带设定')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Prompt = Config.xhPrompt ? [{ role: 'user', content: Config.xhPrompt }] : []
|
Prompt = Config.xhPrompt ? [{ role: 'system', content: Config.xhPrompt }] : []
|
||||||
}
|
}
|
||||||
if (Config.xhPromptEval) {
|
if (Config.xhPromptEval) {
|
||||||
Prompt.forEach(obj => {
|
Prompt.forEach(obj => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue