This commit is contained in:
wangmeihua 2025-08-13 11:15:39 +08:00
parent 069e287bdd
commit d629f483dc

View File

@ -17,6 +17,7 @@ class APIService:
debug(f'{uapi=}, {type(uapi.call)}')
params_kw = {"input": texts}
b = await uapi.call(upappid, apiname, user, params_kw)
debug(f'{b=}, {type(b)}')
d = json.loads(b.decode('utf-8'))
if d.get("object") != "list" or not d.get("data"):
error(f"嵌入服务响应格式错误: {d}")