From 54e5180e7d1d6a5783531a1319350812a618f319 Mon Sep 17 00:00:00 2001 From: Zhang Yulong <35552275+ZhangYulongg@users.noreply.github.com> Date: Thu, 16 Oct 2025 17:21:09 +0800 Subject: [PATCH] Add data dictionary for API response processing Initialize data dictionary for response handling. --- benchmarks/backend_request_func.py | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmarks/backend_request_func.py b/benchmarks/backend_request_func.py index a00c8e005c5..0cb899a3c11 100644 --- a/benchmarks/backend_request_func.py +++ b/benchmarks/backend_request_func.py @@ -118,6 +118,7 @@ async def async_request_eb_openai_chat_completions( most_recent_timestamp = st try: async with session.post(url=api_url, json=payload, headers=headers) as response: + data = {} if response.status == 200: async for chunk_bytes in response.content: chunk_bytes = chunk_bytes.strip()