From 6ab53eca2b076775bff4309cdfed633ed73865da Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 14 Jul 2026 18:22:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20llm=5Fcreate.dspy=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=20ownerid=20=E8=87=AA=E5=8A=A8=E6=B3=A8=E5=85=A5=EF=BC=88login?= =?UTF-8?q?ed=5Fuserorgid=20=E5=AF=B9=E8=87=AA=E5=AE=9A=E4=B9=89=E7=AB=AF?= =?UTF-8?q?=E7=82=B9=E4=B8=8D=E7=94=9F=E6=95=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/llm_create.dspy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wwwroot/api/llm_create.dspy b/wwwroot/api/llm_create.dspy index 17b7d4e..3453614 100644 --- a/wwwroot/api/llm_create.dspy +++ b/wwwroot/api/llm_create.dspy @@ -3,6 +3,7 @@ result = {"widgettype":"Error","options":{"title":"操作失败","message":"Invalid request","cwidth":16,"cheight":9,"timeout":3}} try: + env = request._run_ns dbname = get_module_dbname('llmage') async with DBPools().sqlorContext(dbname) as sor: data = params_kw.copy() @@ -10,6 +11,7 @@ try: data.pop('rows', None) data.pop('data_filter', None) data['id'] = getID() + data['ownerid'] = data.get('ownerid') or await env.get_userorgid() await sor.C('llm', data) result = {"widgettype":"Message","options":{"title":"创建成功","message":"ok","cwidth":16,"cheight":9,"timeout":3}} except Exception as e: