If request is included as a non-default param to pipeline_api, we'll send the active Request object. This will allow a pipeline to, for instance, access headers as needed.
If you'd like to try this:
Pull this branch
Active your pyenv for unstructured-api and run make install-project-local
Switch to unstructured-api and verify that nothing changes when you run make generate-api
Now, open the pipeline notebook and add request as a param to pipeline_api:
If request is included as a non-default param to pipeline_api, we'll send the active Request object. This will allow a pipeline to, for instance, access headers as needed.
If you'd like to try this:
Pull this branch
Active your pyenv for
unstructured-api
and runmake install-project-local
Switch to
unstructured-api
and verify that nothing changes when you runmake generate-api
Now, open the pipeline notebook and add
request
as a param topipeline_api
:Regenerate the api and verify that
general.py
now takes the request param.