From 0a42aa88f09c21ee9eb53406c8158d053481de5a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 3 Sep 2025 11:29:11 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 020fcf4..2ad5531 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -78,8 +78,9 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params): async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=params): if l and l != '[DONE]': d = json.loads(l) - txt = txt + d['content'] - yield l + if d['content'] != '': + txt = txt + d['content'] + yield l debug(f'{d=}, {txt=}') async def inference(request, *args, **kw):