mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
feat: 添加星火设定自定义代码功能
This commit is contained in:
parent
d9c25140ac
commit
007909a156
4 changed files with 27 additions and 2 deletions
|
|
@ -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': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue