From 7662e2e35de387f1c0b56b0e9a5c2fe4745e5dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Vieille?= Date: Fri, 20 Dec 2024 14:12:00 +0000 Subject: [PATCH] fix key for FastapiContextDataProvider context data provider --- .../promptflow/core/_serving/v2/routers/score.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow-core/promptflow/core/_serving/v2/routers/score.py b/src/promptflow-core/promptflow/core/_serving/v2/routers/score.py index 5cc240e43b2..2541567499f 100644 --- a/src/promptflow-core/promptflow/core/_serving/v2/routers/score.py +++ b/src/promptflow-core/promptflow/core/_serving/v2/routers/score.py @@ -37,7 +37,7 @@ async def score(request: Request): logger.info("Start loading request data...") data = load_request_data(app.flow, raw_data, logger) # set context data - _request_ctx_var.get()["data"] = data + _request_ctx_var.get()["input_data"] = data _request_ctx_var.get()["flow_id"] = app.flow.id or app.flow.name run_id = _request_ctx_var.get().get("req_id", None) # TODO: refine this once we can directly set the input/output log level to DEBUG in flow_invoker.