diff --git a/wwwroot/v1/chat/completions/index.dspy b/wwwroot/v1/chat/completions/index.dspy index e6b5b4b..b32958a 100644 --- a/wwwroot/v1/chat/completions/index.dspy +++ b/wwwroot/v1/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 f'data: {l}' - yield 'data: [DONE]\n' + yield f'data: {l}\n' + yield 'data: [DONE]\n\n' else: async for l in f(): yield l