mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: bing suggested
This commit is contained in:
parent
10d40efe56
commit
595d2ab4e9
1 changed files with 7 additions and 2 deletions
|
|
@ -295,7 +295,7 @@ export class chatgpt extends plugin {
|
|||
this.apiStream = apiStream
|
||||
this.reply = async (msg, quote, data) => {
|
||||
let handler = e.runtime?.handler || {}
|
||||
const btns = await handler.call('chatgpt.button.post', this.e)
|
||||
const btns = await handler.call('chatgpt.button.post', this.e, data)
|
||||
const btnElement = {
|
||||
type: 'button',
|
||||
content: btns
|
||||
|
|
@ -1450,7 +1450,12 @@ export class chatgpt extends plugin {
|
|||
this.reply(await makeForwardMsg(this.e, quotemessage.map(msg => `${msg.text} - ${msg.url}`)))
|
||||
}
|
||||
|
||||
this.reply(responseText)
|
||||
this.reply(responseText, e.isGroup, {
|
||||
btnData: {
|
||||
use,
|
||||
suggested: chatMessage.suggestedResponses
|
||||
}
|
||||
})
|
||||
if (Config.enableSuggestedResponses && chatMessage.suggestedResponses) {
|
||||
this.reply(`建议的回复:\n${chatMessage.suggestedResponses}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue