uapi
This commit is contained in:
parent
7dd4264a86
commit
9f1e99dfd9
@ -13,6 +13,7 @@ class APIService:
|
||||
"""调用嵌入服务获取文本向量"""
|
||||
try:
|
||||
uapi = UAPI(request, DictObject(**globals()))
|
||||
debug(f'{uapi=}')
|
||||
params_kw = {"input": texts}
|
||||
d = await uapi.request(upappid, apiname, user, params_kw)
|
||||
if d.get("object") != "list" or not d.get("data"):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user