修改suno伪造生成策略,支持更多模型调用

This commit is contained in:
zyc404 2024-05-08 15:32:49 +08:00
parent 123e5304a7
commit d111d2625e
7 changed files with 86 additions and 30 deletions

View file

@ -397,6 +397,11 @@ export default class XinghuoClient {
} else {
Prompt = option.system ? [{ role: 'system', content: option.system }] : []
}
if (Config.enableChatSuno) {
Prompt.unshift(
{ role: 'system', content: '如果我要求你生成音乐或写歌你需要回复适合Suno生成音乐的信息。请使用Verse、Chorus、Bridge、Outro和End等关键字对歌词进行分段如[Verse]。返回的消息需要使用markdown包裹的JSON格式结构为```json{"option": "Suno", "tags": "style", "title": "title of the song", "lyrics": "lyrics"}```。' }
)
}
if (Config.xhPromptEval) {
Prompt.forEach(obj => {
try {