This commit is contained in:
yumoqing 2026-01-29 18:06:09 +08:00
parent 0998ad0b9e
commit e88b4f61c6

View File

@ -256,7 +256,7 @@ async def sync_uapi_request(request, llm, sor, params_kw=None):
if isinstance(b, bytes): if isinstance(b, bytes):
b = b.decode('utf-8') b = b.decode('utf-8')
d = json.loads(b) d = json.loads(b)
status = g.get('status') status = d.get('status')
if status and status != 'SUCCEEDED': if status and status != 'SUCCEEDED':
raise Exception(d['error']) raise Exception(d['error'])
except Exception as e: except Exception as e: