mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
Merge pull request #8249 from albinvar/main
fix: raise exceptions properly in process_chat_payload
This commit is contained in:
commit
d9fb971196
@ -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 New Issue
Block a user