xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
60.89k stars 13.29k forks source link

Time to repair AmigoChat #2289

Open Looksh190 opened 1 week ago

Looksh190 commented 1 week ago

ERROR:root:Error 406: {"message":"not implemented","error":"Not Acceptable","statusCode":406} Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\api__init.py", line 160, in chat_completions response = await self.client.chat.completions.async_create( File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\client.py", line 281, in async_create async for result in response: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\client.py", line 348, in async_iter_append_model_and_provider async for chunk in response: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\client.py", line 306, in async_iter_response async for chunk in response: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\client.py", line 59, in to_async_iterator for item in iterator: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\providers\base_provider.py", line 223, in create_completion yield loop.run_until_complete(await_callback(gen.anext)) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\nest_asyncio.py", line 98, in run_until_complete return f.result() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 232, in step result = coro.send(None) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\providers\base_provider.py", line 52, in await_callback return await callback() File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\Provider\AmigoChat.py", line 189, in create_async_generator raise e File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\Provider\AmigoChat.py", line 139, in create_async_generator raise Exception(f"Error {response.status}: {error_text}") Exception: Error 406: {"message":"not implemented","error":"Not Acceptable","statusCode":406} INFO: 192.168.0.118:60788 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error

UX0l0l commented 1 week ago

I get a similar message:

Error 403: <!DOCTYPE html>

Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access amigochat.io

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Usually happens when I try to access o1 or o1-mini. Is there a different provider I can switch to for the mean time while this issue gets fixed?

github-actions[bot] commented 1 day ago

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