This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 22:05:34 +08:00
parent 9dfeaa9e18
commit c70995fbc9
14 changed files with 428 additions and 148 deletions

View File

@@ -10,15 +10,12 @@ export async function ensureAppConfigReady() {
try {
const map = await invoke("get_app_config");
if (map && typeof map === "object" && Object.keys(map).length > 0) {
const apiKey =
map.LLM_API_KEY ||
map.llm_api_key ||
map["llm.api_key"];
const apiKey =map.BAILIAN_API_KEY ;
if (!apiKey) {
return {
ok: false,
message:
"缺少 LLM_API_KEY,请在管理后台 desktop_configs 或侧栏「本地配置」中设置",
"缺少 BAILIAN_API_KEY 配置管理 或侧栏「本地配置」中设置",
};
}
return { ok: true };