rag
This commit is contained in:
parent
069e287bdd
commit
d629f483dc
@ -17,6 +17,7 @@ class APIService:
|
|||||||
debug(f'{uapi=}, {type(uapi.call)}')
|
debug(f'{uapi=}, {type(uapi.call)}')
|
||||||
params_kw = {"input": texts}
|
params_kw = {"input": texts}
|
||||||
b = await uapi.call(upappid, apiname, user, params_kw)
|
b = await uapi.call(upappid, apiname, user, params_kw)
|
||||||
|
debug(f'{b=}, {type(b)}')
|
||||||
d = json.loads(b.decode('utf-8'))
|
d = json.loads(b.decode('utf-8'))
|
||||||
if d.get("object") != "list" or not d.get("data"):
|
if d.get("object") != "list" or not d.get("data"):
|
||||||
error(f"嵌入服务响应格式错误: {d}")
|
error(f"嵌入服务响应格式错误: {d}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user