This commit is contained in:
yumoqing 2025-09-04 14:12:46 +08:00
parent eab52f4da0
commit 24a42ad2a3

View File

@ -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
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