优化歌曲消息匹配,适配更多模型支持生成歌曲

This commit is contained in:
zyc404 2024-05-09 22:09:51 +08:00
parent 554f6a69f3
commit 7288e2b845
6 changed files with 402 additions and 37 deletions

View file

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