From 0998ad0b9e816e4582a15838cb37070fc389ca11 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 29 Jan 2026 17:58:06 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 72ca9bc..35a368a 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -256,6 +256,9 @@ async def sync_uapi_request(request, llm, sor, params_kw=None): if isinstance(b, bytes): b = b.decode('utf-8') d = json.loads(b) + status = g.get('status') + if status and status != 'SUCCEEDED': + raise Exception(d['error']) except Exception as e: exception(f'{e=},{format_exc()}') estr = erase_apikey(e)