EvanZhouDev / bard-ai

A lightweight library to access Google Bard.
https://www.npmjs.com/package/bard-ai
GNU General Public License v3.0
117 stars 31 forks source link

✨ [FEATURE]: Proxy and Reverse Proxy #54

Open HalcyonAlcedo opened 1 year ago

HalcyonAlcedo commented 1 year ago

Prerequisites

Feature description

I hope to add proxy and reverse proxy configurations to allow access to Bard through proxy and add host modifications to Bard, in order to facilitate the use of Bard in areas where Bard is not available.

ThatXliner commented 1 year ago

Have you looked into patching fetch

HalcyonAlcedo commented 1 year ago

I have seen it, but I don't quite understand. How to pass the proxy in when I use it. Additionally, I need to modify the bardURL to my reverse proxy address, which seems to be unable to be implemented at the moment.

EvanZhouDev commented 1 year ago

Unfortunately, I am extremely busy right now; if anyone is interested in taking over this feature and creating a PR for it, I'm up for it :)