open-webui/backend/open_webui
Hugo Haldi eab30781e0
Chat completion 401 when no Authorization header
When we send a request to `/api/chat/completions` without the `Authorization` header, the server just crashes and creates a stack trace, returning "Internal Server Error" to the calling client. With this fix, the server sends a 401 to the client with the content `{"detail": "Not authenticated"}`.
2024-09-27 20:04:45 +02:00
..
apps Merge pull request #5710 from kivvi3412/fix_o1_max_tokens 2024-09-26 03:03:15 +02:00
data
migrations refac 2024-09-06 05:30:16 +02:00
static
test
utils refac: task ollama stream support 2024-09-21 01:07:57 +02:00
__init__.py fix: dev2 2024-09-24 16:19:24 +02:00
alembic.ini dev5 2024-09-04 17:33:39 +02:00
config.py fix: RESET_CONFIG_ON_START not working 2024-09-25 01:06:11 +02:00
constants.py
env.py refac 2024-09-26 03:13:38 +02:00
main.py Chat completion 401 when no Authorization header 2024-09-27 20:04:45 +02:00