We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c40c4 commit 155efd1Copy full SHA for 155efd1
src/guidellm/backends/openai/http.py
@@ -473,11 +473,10 @@ async def _aiter_lines(self, stream: httpx.Response) -> AsyncIterator[str]:
473
:param stream: HTTP response object with streaming content
474
:yield: Lines of text from the response stream
475
"""
476
- async for part in stream.aiter_bytes():
477
- for line in part.split(b"\n\n"):
478
- if not line:
479
- continue # Skip blank lines
480
- yield line.decode("utf-8").strip()
+ async for line in stream.aiter_lines():
+ if not line.strip():
+ continue # Skip blank lines
+ yield line
481
482
def _build_headers(
483
self, existing_headers: dict[str, str] | None = None
0 commit comments