mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-05-05 23:50:14 +00:00
fix: fix SSE formatting
This commit is contained in:
parent
b4fb633991
commit
b05cc5685d
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class RunStepDelta(Object):
|
|||
|
||||
class Done():
|
||||
def to_stream_reply(self):
|
||||
return f"event: done\ndata: [DONE]\n\n"
|
||||
return f"data: [DONE]\n\n"
|
||||
|
||||
|
||||
async def check_client_link(request: Request, async_events: AsyncIterable):
|
||||
|
|
|
|||
|
|
@ -75,4 +75,4 @@ class ChatCompletionChunk(ChatCompletionBase):
|
|||
]
|
||||
|
||||
def to_stream_reply(self):
|
||||
return f"data:{self.model_dump_json()}\n\n"
|
||||
return f"data: {self.model_dump_json()}\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue