From f2528d7558cec5cf0fbb1a36327a407722ce4114 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 19 Sep 2025 15:11:14 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 65c276e..468c6cf 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') + if l[-1] == '\n': + l = l[:-1] debug(f'stream response line={l},{type(l)}') l = ''.join(l.split('\n')) if l and l != '[DONE]':