fix: 添加基于LLM的翻译

This commit is contained in:
ikechan8370 2024-02-23 00:18:04 +08:00
parent e5e85621d9
commit e1d40ba009
6 changed files with 341 additions and 215 deletions

View file

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