gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

All providers failed

Open ilyaChuk opened this issue 2 years ago • 6 comments

does not work with any parameters, with any models, with any providers

import g4f
message_content = sys.argv[1] if len(sys.argv) > 1 else "hello"
response = g4f.ChatCompletion.create(
    model='gpt-3.5-turbo',
    messages=[{"role": "user", "content": message_content}],
    stream=True,
)

for message in response:
    print(message, flush=True)

gpt4free# python test.py Traceback (most recent call last): File "/root/sentry/sh/gpt4free/test.py", line 41, in for message in response: File "/root/sentry/sh/gpt4free/g4f/Provider/retry_provider.py", line 54, in create_completion self.raise_exceptions() File "/root/sentry/sh/gpt4free/g4f/Provider/retry_provider.py", line 77, in raise_exceptions raise RuntimeError("\n".join(["All providers failed:"] + [ RuntimeError: All providers failed: Aibn: AttributeError: 'NoneType' object has no attribute 'create_future' Myshell: WSServerHandshakeError: 403, message='Invalid response status', url=URL('wss://api.myshell.ai/ws/?EIO=4&transport=websocket') ChatgptAi: RuntimeError: No system data Aivvm: HTTPError: 403 Client Error: Forbidden for url: https://chat.geekgpt.org/ AItianhuSpace: AttributeError: 'NoneType' object has no attribute 'create_future' DeepAi: ClientResponseError: 404, message='Not Found', url=URL('https://api.deepai.org/make_me_a_sandwich') GptGo: ClientResponseError: 403, message='Forbidden', url=URL('https://gptgo.ai/action_get_token.php?q=%D0%97%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5+%D0%BF%D0%BE+%D1%83%D0%BC%D0%BE%D0%BB%D1%87%D0%B0%D0%BD%D0%B8%D1%8E&hlgpt=default&hl=en')

(venv) root@cv3239573:~/sentry/sh/gpt4free# pip list Package Version


....... g4f 0.1.5.6

ilyaChuk avatar Oct 09 '23 16:10 ilyaChuk

almost all providers failed

Doutianbao avatar Oct 10 '23 04:10 Doutianbao

meeeeeeeeeeeee tooooooooooooooooooooo

zhangzhangzhiyuan avatar Oct 10 '23 06:10 zhangzhangzhiyuan

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 Oct 18 '23 00:10 github-actions[bot]

Mee too!!

DQ2020scut avatar Feb 26 '24 09:02 DQ2020scut

Did you test other providers? The providers from the default list are almost not working.

And you should try use a other IP address. I used yesterday a VPN for GeminiPro and then almost other providers was not working anymore for me too

hlohaus avatar Feb 26 '24 13:02 hlohaus

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 Mar 19 '24 00:03 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Apr 24 '24 00:04 github-actions[bot]