mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
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"}`.