Skip to content

Commit bbb3cde

Browse files
committed
Streaming response returns filedata_meta when handling exception
1 parent 61a29e7 commit bbb3cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unstructured_platform_plugins/etl_uvicorn/api_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ async def _stream_response():
190190
InvokeResponse(
191191
usage=usage,
192192
message_channels=message_channels,
193-
filedata_meta=None,
193+
filedata_meta=filedata_meta_model.model_validate(filedata_meta.model_dump()),
194194
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
195195
status_code_text=f"[{e.__class__.__name__}] {e}",
196196
).model_dump_json()

0 commit comments

Comments
 (0)