From c3d65351824d5f496ef1a5dc2c019518d15f2e91 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Apr 2026 13:01:28 +0800 Subject: [PATCH] bugfix --- wwwroot/chat/completions/index.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/chat/completions/index.dspy b/wwwroot/chat/completions/index.dspy index 6337669..f43a7e1 100644 --- a/wwwroot/chat/completions/index.dspy +++ b/wwwroot/chat/completions/index.dspy @@ -3,8 +3,8 @@ async def gen(): f = partial(inference_generator, request, params_kw=params_kw) if params_kw.stream: async for l in f(): - yield b'data: ' + l + b'\n' - yield b'data: [DONE]' + yield f'data: {l}\n' + yield 'data: [DONE]\n' else: async for l in f(): yield l