diff --git a/llmage/asyncinference.py b/llmage/asyncinference.py index 77a673e..155150c 100644 --- a/llmage/asyncinference.py +++ b/llmage/asyncinference.py @@ -60,7 +60,7 @@ async def async_uapi_request(request, llm, # callerorgid = await env.get_userorgid() # callerid = await env.get_user() # uapi = UAPI(request, sor=sor) - uapi = UpAppApi() + uapi = env.UpAppApi() userid = await get_owner_userid(llm) b = None luid = getID() diff --git a/llmage/syncinference.py b/llmage/syncinference.py index ebb2363..e87af07 100644 --- a/llmage/syncinference.py +++ b/llmage/syncinference.py @@ -23,7 +23,7 @@ async def sync_uapi_request(request, llm, callerid, callerorgid, params_kw=None) # callerid = await env.get_user() # callerorgid = await env.get_userorgid() # uapi = UAPI(request, sor=sor) - uapi = UpAppApi() + uapi = env.UpAppApi() userid = await get_owner_userid(llm) outlines = [] b = None