Closed Aldhanekaa closed 1 year ago
What do you guys think, especially @EvanZhouDev @ThatXliner? Should we just separate different function to upload the image to Google Service? Or just move it inside queryBard
function?
Im still considering this, to be honest.
@RFS-ADRENO is also a great contributor around here :)
But let's talk about this on Slack, I have a few suggestions...
Move To Version 2
NEW Features!
The new feature enables us to bring image along with Bard! Supports format:
JPEG
,JPG
,PNG
,WebP
How to use it?
Get Image Buffer
You need to get the buffer of the image first, whether it's from internet or your local machine
Upload the Image to Google Service
By using
Bard.uploadImage
function, it will upload your buffer file to Google Service, it returns image location that placed in Google Service.Ask It!
The previous
imageLocation
is needed as function argument foraskAI
or the methodChat.ask
Example