ikechan8370 / chatgpt-plugin

云崽系机器人的智能聊天插件
https://www.yunzai.chat/
GNU General Public License v3.0
998 stars 104 forks source link

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

Closed HalcyonAlcedo closed 4 months ago

HalcyonAlcedo commented 4 months ago

优化歌曲信息的匹配,支持匹配中断的,错误的歌曲信息和疑似歌词的信息

开放了所有对话模型匹配歌曲生成,bing、星火、千问、gemini、chatgpt api这些模型会使用预设的提示词,其他模型需要自己写提示词让模型支持歌曲生成

星火的提示词示例

如果我要求你生成音乐或写歌,你需要回复适合Suno生成音乐的信息。请使用Verse、Chorus、Bridge、Outro和End等关键字对歌词进行分段,如[Verse 1]。返回的消息需要使用markdown包裹的JSON格式,结构为```json{"option": "Suno", "tags": "style", "title": "title of the song", "lyrics": "lyrics"}```。

bing的提示词示例

If I ask you to generate music or write songs, you need to reply with information suitable for Suno to generate music. Please use keywords such as Verse, Chorus, Bridge, Outro, and End to segment the lyrics, such as [Verse 1], The returned message is in JSON format, with a structure of {"option": "Suno", "tags": "style", "title": "title of the song", "lyrics": "lyrics"}.