mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #8248] Exception Unpacking Error in process_chat_payload
#15051
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 @albinvar on GitHub (Jan 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8248
When an exception occurred in
process_chat_payload, it was being returned instead of raised.Instead of
This caused the caller (chat_completion) to attempt unpacking the Exception object as if it were a tuple, leading to the error:
The issue can be reproduced by intentionally raising an exception within the custom function (example).
It seems to have been introduced in version
0.5.x, whereas earlier versions handled this correctly.