woheller69 / gptAssist

gptAssist is a simple WebView wrapper for ChatGPT
GNU General Public License v3.0
226 stars 6 forks source link

Add a proxy for connecting #4

Closed ch4daev closed 1 year ago

ch4daev commented 1 year ago

In my region access to openai services is forbidden, I use a proxy in my browser to connect. Not sure if you can, but I think a lot of people would appreciate it if you added the ability to configure proxies manually. =)

woheller69 commented 1 year ago

No idea if that works. If someone knows how to do it - please create a PR

Kurasami commented 1 year ago

It's extremely easy to do this: https://stackoverflow.com/questions/66726389/set-proxy-on-webview-for-api-26

Another guide: https://netslovers.com/post/how-to-using-android-webviews-authenticated-proxy/

I'd do it myself but I don't have a compatible machine to use the Android SDK with to test this.

Hilariously I also just asked chatGPT how to do this and it gave me almost the exact same answer and even the code to try and copy-paste :D

woheller69 commented 1 year ago

I tried that, but it did not have any effect

woheller69 commented 1 year ago

Not sure if that works, but please try -Uninstall -Remove .zip -Install

app-release.apk.zip

woheller69 commented 1 year ago

https://github.com/woheller69/gptAssist/suites/13638309907/artifacts/752658585

woheller69 commented 1 year ago

Does it work?