-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api Problem #2702
Comments
@hlohaus What do you think? |
To assist you, @Screenmax1234 , please provide the G4F error message. Your provider is OpenAI compatible; therefore, you can directly integrate the URL, |
This one yes but the other ones worked then now not. |
Will provide in a bit. |
Here is the g4f error message File "/home/seluser/.local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in call |
Hey @Screenmax1234, there was a bug with the provider route, but I squashed it in the last release. |
Thank you for your help due to school I am unable to test it right now but will definitely check it out when I have some free time. Your contribution is much appreciated 👍 |
INFO: 192.168.1.197:26524 - "GET /api/models HTTP/1.1" 200 OK
INFO: 192.168.1.197:26524 - "GET /ollama/api/version HTTP/1.1" 200 OK
INFO: 192.168.1.197:26524 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
INFO: 192.168.1.197:26524 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
INFO: 192.168.1.197:26524 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO: 192.168.1.197:26533 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
INFO: 192.168.1.197:26534 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
INFO: 192.168.1.197:26533 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO [open_webui.routers.openai] get_all_models()
INFO: 192.168.1.197:26536 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
INFO: 192.168.1.197:26533 - "POST /api/v1/chats/486f067c-cb70-417c-b59f-151e73e0086d HTTP/1.1" 200 OK
INFO: 192.168.1.197:26533 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO [open_webui.routers.openai] get_all_models()
ERROR [open_webui.routers.openai] 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
ERROR [open_webui.routers.openai] 500, message='Internal Server Error', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
Traceback (most recent call last):
File "/app/backend/open_webui/routers/openai.py", line 696, in generate_chat_completion
r.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
ERROR [open_webui.routers.tasks] Error generating chat completion: 500: Internal Server Error
INFO: 192.168.1.197:26534 - "POST /api/v1/tasks/auto/completions HTTP/1.1" 500 Internal Server Error
ERROR [open_webui.routers.openai] 500, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
ERROR [open_webui.routers.openai] 500, message='Internal Server Error', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
Traceback (most recent call last):
File "/app/backend/open_webui/routers/openai.py", line 696, in generate_chat_completion
r.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url='https://chat.nelogroup.me/api/OIVSCode/chat/completions'
INFO: 192.168.1.197:26533 - "POST /api/chat/completions HTTP/1.1" 400 Bad Request
INFO: 192.168.1.197:26533 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
I have been getting this error the past couple of days
The text was updated successfully, but these errors were encountered: