Free-Auto-GPT
Free-Auto-GPT copied to clipboard
Is there proxy support?
I live in Hong Kong so I need proxy support as ChatGPT is blocked here. I have a ChatGPT account and a proxy that isn't blocked by them. Is there anyway to use an https proxy with Free Auto GPT?
With GPT4Free proxies work if I modify the code in streamlit_app.py like the example below:
Default function:
def get_answer(question: str) -> str:
# Set cloudflare clearance cookie and get answer from GPT-4 model
try:
result = you.Completion.create(prompt=question)
return result.text
with proxy passsed:
def get_answer(question: str) -> str:
# Set cloudflare clearance cookie and get answer from GPT-4 model
try:
result = you.Completion.create(prompt=question,proxy='myusernamehere:[email protected]:32222')
return result.text
streamlit_app.py doesn't import requests but I found it in another module of GPT4free as well as proxy initialization and formatting. Does Auto GPT have a similar setup, and where should I pass my proxy? This is pretty awesome btw :)