IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.43k stars 382 forks source link

Is there proxy support? #119

Closed gameuser1982 closed 1 year ago

gameuser1982 commented 1 year ago

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:mypasswordhere@35.239.93.3: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 :)

IntelligenzaArtificiale commented 1 year ago

for the moment we dont have scheduled proxy support, but u can use free vpn to buypas :) we have publish new UPDATE , pls try now