Skip to content

Commit 8d738a4

Browse files
authored
fix: add space after "data:" in muxing adapter (#1090)
1 parent dd1d6f6 commit 8d738a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegate/muxing/adapter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _format_antropic(self, chunk: str) -> str:
136136

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

142142
async def _format_streaming_response(

0 commit comments

Comments
 (0)