mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #12423] issue: Unable to Modify Error Responses from API OpenAI via Functions #16595
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?
Originally created by @TechBeme on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12423
I'm encountering an issue where I'm unable to modify or intercept error responses returned by any OpenAI API.
My goal is to customize the error messages that are generated. It seems that the function
outletis not executed if the API response is an error (400, 429 etc).I need assistance in determining if it's possible to access and modify these error responses within the functions and, if so, how to implement it correctly. Any insights or alternative approaches would be greatly appreciated.
My code:
@rgaricano commented on GitHub (Apr 4, 2025):
no, outlet isn't proccesed on api calls: https://github.com/open-webui/open-webui/discussions/8722#discussioncomment-12193783