feat: 新增桌面AI拾取功能,支持视觉识别控件
This commit is contained in:
1 parent
f74d1865da
commit
85dcb94056
12 files changed
+910
-53
No files matched your search
@@ -5,7 +5,7 @@ import type { AppSettings } from "../shared/types";
|
||||
|
||||
export const DEFAULT_APP_SETTINGS: AppSettings = {
|
||||
browserElementWaitMs: 5000,
|
||||
aiConfig: { baseUrl: "", apiKey: "", model: "" }
|
||||
aiConfig: { baseUrl: "", apiKey: "", model: "", visionModel: "" }
|
||||
};
|
||||
|
||||
let cache: AppSettings | null = null;
|
||||
@@ -25,7 +25,8 @@ function normalizeSettings(value: unknown): AppSettings {
|
||||
aiConfig: {
|
||||
baseUrl: String(ai.baseUrl ?? ""),
|
||||
apiKey: String(ai.apiKey ?? ""),
|
||||
model: String(ai.model ?? "")
|
||||
model: String(ai.model ?? ""),
|
||||
visionModel: String(ai.visionModel ?? "")
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user