Skip to content

Commit 12ca779

Browse files
zhaohaiyuanzhaohaidao
zhaohaiyuan
authored andcommitted
use event-stream in decode phase instead
Signed-off-by: zhaohaidao <[email protected]> Signed-off-by: zhaohaiyuan <[email protected]> Signed-off-by: zhaohaidao <[email protected]>
1 parent 45ab403 commit 12ca779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/lmcache/disagg_prefill_lmcache_v1/disagg_proxy_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async def generate_stream():
135135
yield chunk
136136

137137
return StreamingResponse(generate_stream(),
138-
media_type="application/json")
138+
media_type="text/event-stream")
139139

140140
except Exception as e:
141141
import sys
@@ -172,7 +172,7 @@ async def generate_stream():
172172
yield chunk
173173

174174
return StreamingResponse(generate_stream(),
175-
media_type="application/json")
175+
media_type="text/event-stream")
176176

177177
except Exception as e:
178178
import sys

0 commit comments

Comments
 (0)