Closed Aldhanekaa closed 1 year ago
See 96e55b0dba6ff121396bfaf75d354dd552b87a06. I added all of these changes but did some edits. You're added as a co-author 🙂. Please verify that it works, and I'll push to NPM!
Unfortunately, I'm going to have to publish without your review, because I also forgot to push the types! I've tested things, and it works well, so if you have any additional concerns, you have my Slack :)
Will be closing, reopen if you need to.
url: x[0][5].match(/imgurl=([^&%]+)/)[1],
remove that line from index.js and it will work
Bugs from https://github.com/EvanZhouDev/bard-ai/commit/9ae833e7247cfd646511a0ba82cd12e5387c7bd4 that I fixed in this commit;
Iterating Images Data Bugs
Unable to iterate
This error occurs when there is no images replied from Bard;
Unable to get image url.
It returns an error when it tries to get the image url, it turns out that on x[0][5], the value was null.
✨ Proposing new feature!
In addition, I also proposing new data for the images returned from the
queryBard
function, and that is the image source, it contains the origin site, favicon, and page url the image was taken from.Chat Ids Bugs
I notice that, the conversationID and responseID returned was not really the ID. This is the ID that is being returned;
It turns out because both conversationID and responseID, indexing from
const jsonChatData = JSON.parse(chatData)[4][0]
, however it should directly indexed fromJSON.parse(chatData)
(JSON array)