mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
fix: raise exceptions properly in process_chat_payload
This commit is contained in:
parent
4bc9904b3c
commit
c561eb7bbd
@ -644,7 +644,7 @@ async def process_chat_payload(request, form_data, metadata, user, model):
|
|||||||
request, form_data, model, extra_params
|
request, form_data, model, extra_params
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return Exception(f"Error: {e}")
|
raise Exception(f"Error: {e}")
|
||||||
|
|
||||||
tool_ids = form_data.pop("tool_ids", None)
|
tool_ids = form_data.pop("tool_ids", None)
|
||||||
files = form_data.pop("files", None)
|
files = form_data.pop("files", None)
|
||||||
|
Loading…
Reference in New Issue
Block a user