From 8b296c74752ac30944980324b43b551300b17765 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 16:39:34 +0800 Subject: [PATCH] bugfix --- llmage/asyncinference.py | 2 +- llmage/syncinference.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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