From 24a42ad2a33f707eb639fd651b3385be79f0aa33 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 4 Sep 2025 14:12:46 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 00070de..f086ba7 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -78,7 +78,11 @@ 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]': yield_it = False - d = json.loads(l) + try: + d = json.loads(l) + excelp Exception e: + debug(f'json.loads({l}) error({e})') + continue if d.get('reasoning_content'): txt += d.get('reasoning_content') yield_it = True