From 91de2a72655e2357399510919c9698ced2632679 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 2 Sep 2025 17:43:45 +0800 Subject: [PATCH] bugfi --- llmage/llmclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index da36075..ab454ab 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -76,7 +76,7 @@ async def uapi_request(request, sor, caller_orgid, callerid, uapi, llm, params): userid = await get_owner_userid(sor, llm) txt = '' async for l in uapi.stream_linify(llm.upappid, llm.apiname, userid, params=params): - if l != '[DONE]': + if l and l != '[DONE]': d = json.loads(l) txt = txt + d['content'] yield l