feat(proxy): 增加数据库和 AI 代理支持

This commit is contained in:
t8y2
2026-05-11 15:05:25 +08:00
parent 1d5a2b2220
commit 79277c660f
20 changed files with 712 additions and 19 deletions
+2
View File
@@ -171,6 +171,8 @@ export const useConnectionStore = defineStore("connection", () => {
driver_label: config.driver_label || labelMap[profile] || config.db_type,
url_params: config.url_params || "",
ssh_connect_timeout_secs: config.ssh_connect_timeout_secs || 5,
proxy_type: config.proxy_type || "socks5",
proxy_port: config.proxy_port || 1080,
};
}
+2
View File
@@ -11,6 +11,8 @@ export interface AiConfig {
endpoint: string;
model: string;
apiStyle: AiApiStyle;
proxyEnabled?: boolean;
proxyUrl?: string;
}
const defaultConfigs: Record<AiProvider, Omit<AiConfig, "apiKey">> = {