feat: add #识图

This commit is contained in:
ikechan8370 2024-03-16 00:36:27 +08:00
parent a4d07b9d46
commit 4eaf218d66
2 changed files with 36 additions and 0 deletions

View file

@ -157,6 +157,9 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
}
]
}
if (opt.image) {
delete body.tools
}
body.contents.forEach(content => {
delete content.id
delete content.parentMessageId