[Bugfix][Benchmark] Preserve SSE output across transport chunk boundaries (#51172)

Signed-off-by: Akshan Krithick <akshankrithick305@gmail.com>
This commit is contained in:
Akshan Krithick
2026-10-13 21:58:58 -07:00
committed by GitHub
parent a78d050eff
commit 02d69c663a
2 changed files with 46 additions and 3 deletions
@@ -235,7 +235,6 @@ async def async_request_openai_completions(
handler = StreamedResponseHandler()
async for chunk_bytes in response.content.iter_any():
chunk_bytes = chunk_bytes.strip()
if not chunk_bytes:
continue
@@ -412,7 +411,6 @@ async def async_request_openai_chat_completions(
first_chunk_received = False
handler = StreamedResponseHandler()
async for chunk_bytes in response.content.iter_any():
chunk_bytes = chunk_bytes.strip()
if not chunk_bytes:
continue
@@ -713,7 +711,6 @@ async def async_request_openai_audio(
handler = StreamedResponseHandler()
async for chunk_bytes in response.content.iter_any():
chunk_bytes = chunk_bytes.strip()
if not chunk_bytes:
continue