From fd8e0a6f284256a6b283a0695ca42cdcbc182afb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 30 Mar 2026 13:49:08 +0800 Subject: [PATCH] bugfix --- llmage/asyncinference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmage/asyncinference.py b/llmage/asyncinference.py index 471c6c4..481ced0 100644 --- a/llmage/asyncinference.py +++ b/llmage/asyncinference.py @@ -138,7 +138,7 @@ async def add_new_llmusage_output(luid, newd): def get_llmusage_last_output(llmusage): io = json.loads(r.ioinfo) outs = io.get('output', []) - if len(outs) == 0 + if len(outs) == 0: return None d = DictObject(**outs[-1]) return d