From 8520ea1d75cdc830e1cd6ad24bbfc7d1cee1bbe3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Apr 2026 12:58:58 +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 dfa823a..59b759c 100644 --- a/wwwroot/chat/completions/index.dspy +++ b/wwwroot/chat/completions/index.dspy @@ -1,7 +1,7 @@ async def gen(): env = request._run_ns.copy() - f = partial(inference_generator, request, *args, params_kw=params_kw, **kw) - if params_kw.stream: + f = partial(inference_generator, request, *args, params_kw=params_kw, **kw) + if params_kw.stream: async for l in f(): yield b'data: ' + l + b'\n' yield b'data: [DONE]'