fix: raise exceptions properly in process_chat_payload

This commit is contained in:
Albin Varghese 2025-01-01 17:15:06 +05:30 committed by GitHub
parent 4bc9904b3c
commit c561eb7bbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)