From c73cd3f862a597c4206f103f06253f90a99fed0f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 11:45:12 +0800 Subject: [PATCH 1/3] bugfix --- wwwroot/llminference.dspy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wwwroot/llminference.dspy b/wwwroot/llminference.dspy index 4baf6a9..e1b20fa 100644 --- a/wwwroot/llminference.dspy +++ b/wwwroot/llminference.dspy @@ -1,7 +1,9 @@ debug(f'{params_kw=}') userid = await get_user() +userorgid = await get_userorgid() if userid is None: return UiError(title='llm inference', message='Please login first') +f = await checkCustomerBalance(params_kw.llmid, userorgid) kdbids = params_kw.kdbids if kdbids: data = { From d833c6751a0ed536461e8b5a88ed3e66ad188778 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 11:46:26 +0800 Subject: [PATCH 2/3] bugfix --- llmage/llmclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 5f95ea0..372669f 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -388,7 +388,7 @@ async def inference_generator(request, *args, params_kw=None, **kw): yield d async def _inference_generator(request, callerid, callerorgid, - params_kw=params_kw, **kw): + params_kw={}, **kw): if not params_kw: params_kw = env.params_kw if not params_kw.transno: From 3e4b08c521d015dbb8fbc04b00e52859778b3548 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 16:29:00 +0800 Subject: [PATCH 3/3] bugfix --- llmage/llmclient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 372669f..d322b0c 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -389,6 +389,7 @@ async def inference_generator(request, *args, params_kw=None, **kw): async def _inference_generator(request, callerid, callerorgid, params_kw={}, **kw): + env = request._run_ns if not params_kw: params_kw = env.params_kw if not params_kw.transno: