mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #16385] [MERGED] feat: Propagate upstream OpenAI router errors #95154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16385
Author: @gaby
Created: 8/8/2025
Status: ✅ Merged
Merged: 8/8/2025
Merged by: @tjbck
Base:
dev← Head:2025-08-08-13-38-31📝 Commits (4)
2ae7584feat: forward upstream OpenAI errors5d7e8c8Format openai routerd2f2d42Format python code7619f44Format code base📊 Changes
3 files changed (+352 additions, -278 deletions)
View changed files
📝
backend/open_webui/retrieval/vector/dbs/oracle23ai.py(+274 -219)📝
backend/open_webui/routers/openai.py(+76 -57)📝
backend/open_webui/utils/tools.py(+2 -2)📄 Description
Description
The main purpose of this PR is to change how errors are handled by the
openairouter. Currently when a bad request happens, Open-WebUI doesn't propagate the error back to the user, instead of just has a generic "Bad Request". This makes debugging for API users very hard, since they can't see which fields are wrong/missing.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.