From 813f92c03d1f7157176b904af7f9df95e475b6da Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 19 Sep 2025 14:59:28 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index f4eb36f..65c276e 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -100,6 +100,8 @@ async def uapi_request(request, llm, sor): params=env.params_kw): if isinstance(l, bytes): l = l.decode('utf-8') + debug(f'stream response line={l},{type(l)}') + l = ''.join(l.split('\n')) if l and l != '[DONE]': yield_it = False d = {}