linka-app / linka

Cross-platform, Self-hosted & AI powered bookmark management app for linkding, an alternative to linkding front-end, with special optimization for search and quick open functions. Free and open source. Provide web app、PWA and desktop APP. Companion for browsers without bookmark like Arc.
https://linka.unoiou.com
60 stars 5 forks source link

Feat: auto generate site meta info from url by GPT #8

Closed cmsax closed 1 year ago

use-the-fork commented 1 year ago

So this had to be done as a double API Call since CORS is an issue with Fetch and Axious I used a third-party service (Browserless) to get the page content initially and then passed that info to OPEN AI to summarize.

cmsax commented 1 year ago

I've tested this new awesome feature today, it worked and I found that the content return by GPT was truncated in some cases, like below:

image

tested url: https://www.baidu.com

It looks that GPT returned more than one item, maybe we can optimize the prompt.

use-the-fork commented 1 year ago

@cmsax Try now. it seemed to have fixed the issue for me.

cmsax commented 1 year ago

It now works!