mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: error when gemini multiple functionCall in one response
This commit is contained in:
parent
69ff552dc9
commit
98d129517a
3 changed files with 53 additions and 109 deletions
|
|
@ -53,7 +53,7 @@ export class SendPictureTool extends AbstractTool {
|
|||
}
|
||||
}
|
||||
// await group.sendMsg(pictures)
|
||||
return 'picture has been sent to group' + target + errs.length > 0 ? `, but some pictures failed to send (${errs.join('、')})` : ''
|
||||
return 'picture has been sent to group' + target + (errs.length > 0 ? `, but some pictures failed to send (${errs.join('、')})` : '')
|
||||
} else {
|
||||
let user = e.bot.pickUser(target)
|
||||
if (e.group_id) {
|
||||
|
|
@ -66,7 +66,7 @@ export class SendPictureTool extends AbstractTool {
|
|||
errs.push(pic.url)
|
||||
}
|
||||
}
|
||||
return 'picture has been sent to user' + target + errs.length > 0 ? `, but some pictures failed to send (${errs.join('、')})` : ''
|
||||
return 'picture has been sent to user' + target + (errs.length > 0 ? `, but some pictures failed to send (${errs.join('、')})` : '')
|
||||
}
|
||||
} catch (err) {
|
||||
return `failed to send pictures, error: ${JSON.stringify(err)}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue