From a4be36679791689fab76824c7f9d08720ddefc72 Mon Sep 17 00:00:00 2001 From: RongLei-intel Date: Sun, 29 Sep 2024 15:25:18 +0800 Subject: [PATCH] Fix JSON Return Format in getReqData Function (#145) The getReqData function was incorrectly returning a tuple containing a dictionary, which is not a valid JSON format. --- evals/benchmark/stresscli/locust/retrieverfixed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evals/benchmark/stresscli/locust/retrieverfixed.py b/evals/benchmark/stresscli/locust/retrieverfixed.py index 805ad57b..f0d72c82 100644 --- a/evals/benchmark/stresscli/locust/retrieverfixed.py +++ b/evals/benchmark/stresscli/locust/retrieverfixed.py @@ -783,7 +783,7 @@ def getUrl(): def getReqData(): - return ({"text": my_query, "embedding": my_embedding},) + return {"text": my_query, "embedding": my_embedding} def respStatics(environment, reqData, resp):