gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Proxy setup

Open EdgeBow opened this issue 2 years ago • 5 comments

Ask under which file the proxy is set?

EdgeBow avatar Oct 15 '23 09:10 EdgeBow

Try: https://github.com/xtekky/gpt4free#proxy-support

response = await g4f.ChatCompletion.create_async(
    model=g4f.models.default,
    provider=g4f.Provider.Opchatgpts,
    messages=[{"role": "user", "content": "Hello"}],
    proxy="http://host:port",
    # or socks5://user:pass@host:port
)

hlohaus avatar Oct 16 '23 06:10 hlohaus

Try: https://github.com/xtekky/gpt4free#proxy-support

response = await g4f.ChatCompletion.create_async(
    model=g4f.models.default,
    provider=g4f.Provider.Opchatgpts,
    messages=[{"role": "user", "content": "Hello"}],
    proxy="http://host:port",
    # or socks5://user:pass@host:port
)

Please ask under which file you need to add these contents

EdgeBow avatar Oct 16 '23 07:10 EdgeBow

since the update of 0.1.6.8 socks5 proxies are not working at all. . .can you check please? can you also please highlight which one are working with socks5 and which need an http proxy? if you can help us find a software to make a bridge http proxy to a socks5 proxy then that would also be appreciated, in case solving the issue of socks5 proxy is not easy.

koutkout avatar Oct 23 '23 12:10 koutkout

i can confirm that socks5 proxies are not working. i use 0.1.8.9

steamboatid avatar Nov 30 '23 01:11 steamboatid

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Jan 05 '24 00:01 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Feb 03 '24 00:02 github-actions[bot]