11
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user