We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f0dbc commit 6341f44Copy full SHA for 6341f44
unstructured_platform_plugins/etl_uvicorn/api_generator.py
@@ -136,11 +136,8 @@ async def _stream_response():
136
137
return StreamingResponse(_stream_response(), media_type="application/x-ndjson")
138
else:
139
- return InvokeResponse(
140
- usage=usage,
141
- status_code=status.HTTP_200_OK,
142
- output=await invoke_func(func, request_dict),
143
- )
+ output = await invoke_func(func=func, kwargs=request_dict)
+ return InvokeResponse(usage=usage, status_code=status.HTTP_200_OK, output=output)
144
except Exception as invoke_error:
145
logger.error(f"failed to invoke plugin: {invoke_error}", exc_info=True)
146
return InvokeResponse(
0 commit comments