mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
添加bing第三方suno生成支持
This commit is contained in:
parent
ec47a4d9b0
commit
f8f5f8f83a
4 changed files with 83 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue