添加bing第三方suno生成支持

This commit is contained in:
zyc404 2024-05-07 14:33:52 +08:00
parent ec47a4d9b0
commit f8f5f8f83a
4 changed files with 83 additions and 1 deletions

View file

@ -259,7 +259,12 @@ class Core {
})
redis.set(`CHATGPT:SUNO:${e.sender.user_id}`, 'c', { EX: 30 }).then(() => {
try {
client.getSuno(prompt, e)
if (Config.bingLocalSuno) {
// 调用本地Suno配置进行歌曲生成
client.getLocalSuno(prompt, e)
} else {
client.getSuno(prompt, e)
}
} catch (err) {
redis.del(`CHATGPT:SUNO:${e.sender.user_id}`)
this.reply('歌曲生成失败:' + err)