From dd19641175d5469bbfcb6aef8f85cd2b832b1e10 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 1 Sep 2026 17:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20endpoint=5Fpref=E5=AD=97=E5=85=B8parenti?= =?UTF-8?q?d=E7=BC=A9=E7=9F=AD=E4=B8=BAllm=5Fep=5Fpref=E2=80=94=E2=80=94?= =?UTF-8?q?=E7=BB=84=E5=90=88=E9=94=AE=E8=B6=85appcodes=5Fkv.id=2032?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/data.json | 2 +- models/llm_org_policy.json | 2 +- wwwroot/api/get_llm_endpoint_pref_options.dspy | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init/data.json b/init/data.json index a303661..3b76536 100644 --- a/init/data.json +++ b/init/data.json @@ -23,7 +23,7 @@ {"k": "tts", "v": "语音合成"}, {"k": "asr", "v": "语音识别"} ]}, - {"parentid": "llm_endpoint_pref", "parentname": "端点偏好", "items": [ + {"parentid": "llm_ep_pref", "parentname": "端点偏好", "items": [ {"k": "any", "v": "不限"}, {"k": "prefer_domestic", "v": "优先国内"}, {"k": "prefer_intl", "v": "优先国际"}, diff --git a/models/llm_org_policy.json b/models/llm_org_policy.json index cf3c43c..699375c 100644 --- a/models/llm_org_policy.json +++ b/models/llm_org_policy.json @@ -84,7 +84,7 @@ "table": "appcodes_kv", "valuefield": "k", "textfield": "v", - "cond": "parentid='llm_endpoint_pref'" + "cond": "parentid='llm_ep_pref'" }, { "field": "status", diff --git a/wwwroot/api/get_llm_endpoint_pref_options.dspy b/wwwroot/api/get_llm_endpoint_pref_options.dspy index 8e67b13..a65919a 100644 --- a/wwwroot/api/get_llm_endpoint_pref_options.dspy +++ b/wwwroot/api/get_llm_endpoint_pref_options.dspy @@ -1,10 +1,10 @@ -# get_llm_endpoint_pref_options.dspy — appcodes_kv 下拉选项(parentid=llm_endpoint_pref) +# get_llm_ep_pref_options.dspy — appcodes_kv 下拉选项(parentid=llm_ep_pref) dbname = get_module_dbname('pipeline_llm') try: async with get_sor_context(request._run_ns, dbname) as sor: recs = await sor.sqlExe( "SELECT k, v FROM appcodes_kv WHERE parentid=${p}$ ORDER BY k", - {"p": "llm_endpoint_pref"}) + {"p": "llm_ep_pref"}) await sor.sqlExe("COMMIT", {}) except Exception as e: return {"success": False, "message": str(e), "data": []}