Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit cd3de72

Browse files
authored
fix: add space after data: sse_stream_generator (#1087)
1 parent 5b97dcd commit cd3de72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegate/providers/litellmshim/generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ async def sse_stream_generator(stream: AsyncIterator[Any]) -> AsyncIterator[str]
1717
# this might even allow us to tighten the typing of the stream
1818
chunk = chunk.model_dump_json(exclude_none=True, exclude_unset=True)
1919
try:
20-
yield f"data:{chunk}\n\n"
20+
yield f"data: {chunk}\n\n"
2121
except Exception as e:
22-
yield f"data:{str(e)}\n\n"
22+
yield f"data: {str(e)}\n\n"
2323
except Exception as e:
2424
yield f"data: {str(e)}\n\n"
2525
finally:

0 commit comments

Comments
 (0)