From e48e6ae079a89a296d59fbde6fe7a780227c06ed Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 28 Apr 2026 14:26:27 +0800 Subject: [PATCH] bugfix --- llmage/asyncinference.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llmage/asyncinference.py b/llmage/asyncinference.py index dbcb6aa..8d0acbd 100644 --- a/llmage/asyncinference.py +++ b/llmage/asyncinference.py @@ -171,7 +171,11 @@ async def query_task_status(request, luid, onetime=False): 'status': 'FAILED', 'error': f'{b},{e}' } - if lastoutout['status'] != new_output['status']: + if not new_output.get('status'): + e = Exception(f"{new_outpu=} {upappid=}, {apiname=} has not status field") + critical(f'{e}') + raise e + if lastoutout['status'] != new_output.get('status'): llmusage.status = new_output['status'] ns = { 'id': llmusage.id,