Commit graph

15 commits

Author SHA1 Message Date
buzz-lightsnack-2007
7ddc8b1b56 Use the ES6 import method for secretariat to better identify the data source 2024-04-30 23:25:18 +08:00
buzz-lightsnack-2007
e50eb84926 Update product data only when necessary
This is to save API usage.
2024-04-29 09:32:49 +08:00
buzz-lightsnack-2007
a226f12645 rename modules after moving to appropriate folders 2024-04-26 21:32:32 +08:00
H. Saw
0b7be21d03 move hash to utilities folder 2024-04-26 03:00:42 +00:00
buzz-lightsnack-2007
098fcb2d51 use secretariat.compare() instead of building its own functionality 2024-04-16 23:51:42 +08:00
buzz-lightsnack-2007
7a6033ec8c make sure to get the 0th URL item 2024-04-16 20:23:03 +08:00
buzz-lightsnack-2007
6d46ba81dc make sure product data is synced 2024-04-15 23:12:56 +08:00
buzz-lightsnack-2007
fba38ba823 Revert gemini-pro-vision to use gemini-pro
An error 400 always occurs through gemini-pro-vision, so gemini-pro might work better.

There's no need to change the message structure.
2024-04-15 14:25:57 +08:00
buzz-lightsnack-2007
66a713700a remove function
It doesn't belong since it has already been copied elsewhere
2024-04-15 14:16:14 +08:00
buzz-lightsnack-2007
69949096b7 Use Gemini Pro Vision to support images 2024-04-15 13:22:21 +08:00
buzz-lightsnack-2007
902da8f8fc address parsing of product
Google Gemini always wants to return in MarkDown, so let's fix that.
2024-04-13 21:14:14 +08:00
buzz-lightsnack-2007
586578fe45 Include AI system prompt and analyzer function 2024-04-11 18:39:52 +08:00
buzzcode2007
809c5ac093 add analyzer function 2024-04-11 17:50:15 +08:00
buzzcode2007
563d6243e5 add product saving feature
Require attachment prior to saving
2024-04-11 16:56:55 +08:00
H. Saw
0ae1a831f8 create product analyzer function 2024-04-11 06:36:25 +00:00