zeroy1024 / googleBard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should better have Proxy in http client

Databingo opened this issue · comments

In some area users need proxy to access google, maybe it's useful to add a proxy setting configuration of the golang http Client structure by users.
Or users could set system proxy by: os.Setenv("https_proxy", "http://127.0.0.1:7890") in front of the reference of bard.
Both methods could be deployed to be a manual configuration and definitely make convenient for users.

Thank you for your suggestion. I overlooked this point. In my application scenario, I implemented a proxy access, deployed it on VPS that can access Google Bard, changed the request address to VPS address, and set the request header Dest-Addr. If you are interested, you can visit proxyAccess

An elegant solution, but I suspect could it penetrates the middle censorship with Dest-Addr headers of google.

I deleted this request header from the request sent to Google

Hello there, I have opened a pull request for adding a proxy setting, it's useful for import repository using with local proxy setting.

thanks!!!