feat: 添加星火设定自定义代码功能

This commit is contained in:
Alcedo 2023-08-25 15:29:25 +08:00
parent d9c25140ac
commit 007909a156
4 changed files with 27 additions and 2 deletions

View file

@ -1916,7 +1916,11 @@ export class chatgpt extends plugin {
})
// 获取图片资源
const image = await getImg(e)
let response = await client.sendMessage(prompt, conversation?.conversationId, image ? image[0] : undefined)
let response = await client.sendMessage(prompt, {
e,
chatId: conversation?.conversationId,
image: image ? image[0] : undefined
})
return response
}
case 'azure': {