Skip to content

Commit

Permalink
Fix JSON Return Format in getReqData Function (#145)
Browse files Browse the repository at this point in the history
The getReqData function was incorrectly returning a tuple containing a dictionary, which is not a valid JSON format.
  • Loading branch information
RongLei-intel authored Sep 29, 2024
1 parent f2bff45 commit a4be366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evals/benchmark/stresscli/locust/retrieverfixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a4be366

Please sign in to comment.