Skip to content

Commit ed60c34

Browse files
committed
fix rate limiting issue
1 parent f2ad52c commit ed60c34

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/deepeval_tests/standard_tests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,12 @@ async def run_metric(metric_name, metric):
249249
"reason": f"Error: {str(e)}",
250250
}
251251

252-
metric_results_list = await asyncio.gather(
253-
*(run_metric(name, metric) for name, metric in metrics)
254-
)
255-
metrics_results = dict(metric_results_list)
252+
# Run metrics sequentially to avoid rate limiting
253+
metrics_results = {}
254+
for name, metric in metrics:
255+
print(f" Running {name} metric...")
256+
result_name, result_data = await run_metric(name, metric)
257+
metrics_results[result_name] = result_data
256258

257259
# --- Collect results ---
258260
try:

0 commit comments

Comments
 (0)