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

fix: add space after "data:" in muxing adapter #1090

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/codegate/muxing/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _format_antropic(self, chunk: str) -> str:

def _format_as_openai_chunk(self, formatted_chunk: str) -> str:
"""Format the chunk as OpenAI chunk. This is the format how the clients expect the data."""
chunk_to_send = f"data:{formatted_chunk}\n\n"
chunk_to_send = f"data: {formatted_chunk}\n\n"
return chunk_to_send

async def _format_streaming_response(
Expand Down