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": []}