You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Promptflow server runtime with FastAPI doesn't write intput/output in collector.
How To Reproduce the bug
With v2 fastapi + managed online endpoint with Azure Machine Learning (AML), the data collector can't write anything because in FlowMonitor input_data are requested with input_data = self.context_data_provider.get_request_data(). This method looks for a key called input_data in FastapiContextDataProvider.
But the value of this key is None because we don't set it correctly in get_score_router()
Describe the bug
Promptflow server runtime with FastAPI doesn't write intput/output in collector.
How To Reproduce the bug
With v2 fastapi + managed online endpoint with Azure Machine Learning (AML), the data collector can't write anything because in
FlowMonitor
input_data are requested withinput_data = self.context_data_provider.get_request_data()
. This method looks for a key calledinput_data
inFastapiContextDataProvider
.But the value of this key is
None
because we don't set it correctly inget_score_router()
code source:
src/promptflow-core/promptflow/core/_serving/v2/routers/score.py
Expected behavior
Same behavior than Flask engine.
Additional context
I wrote a PR #3890
The text was updated successfully, but these errors were encountered: