mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix: raise exceptions properly in process_chat_payload
This commit is contained in:
parent
4bc9904b3c
commit
c561eb7bbd
1 changed files with 1 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ async def process_chat_payload(request, form_data, metadata, user, model):
|
|||
request, form_data, model, extra_params
|
||||
)
|
||||
except Exception as e:
|
||||
return Exception(f"Error: {e}")
|
||||
raise Exception(f"Error: {e}")
|
||||
|
||||
tool_ids = form_data.pop("tool_ids", None)
|
||||
files = form_data.pop("files", None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue