Merge pull request #8249 from albinvar/main

fix: raise exceptions properly in process_chat_payload
This commit is contained in:
Timothy Jaeryang Baek 2025-01-01 18:44:42 -08:00 committed by GitHub
commit d9fb971196
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
)
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)