security: 移除硬编码 API Key,用户需自行配置

This commit is contained in:
JOJO 2026-04-24 17:16:32 +08:00
parent 7d297ba1a4
commit 1aee169c68
2 changed files with 3 additions and 3 deletions

View File

@ -50,17 +50,17 @@ struct Config {
} }
var llmBaseURL: String { var llmBaseURL: String {
get { defaults.string(forKey: Keys.llmBaseURL) ?? "https://api.deepseek.com" } get { defaults.string(forKey: Keys.llmBaseURL) ?? "" }
set { defaults.set(newValue, forKey: Keys.llmBaseURL) } set { defaults.set(newValue, forKey: Keys.llmBaseURL) }
} }
var llmAPIKey: String { var llmAPIKey: String {
get { defaults.string(forKey: Keys.llmAPIKey) ?? "sk-3457fbc33f0b4aefb2ce1d3101bb2341" } get { defaults.string(forKey: Keys.llmAPIKey) ?? "" }
set { defaults.set(newValue, forKey: Keys.llmAPIKey) } set { defaults.set(newValue, forKey: Keys.llmAPIKey) }
} }
var llmModel: String { var llmModel: String {
get { defaults.string(forKey: Keys.llmModel) ?? "deepseek-v4-flash" } get { defaults.string(forKey: Keys.llmModel) ?? "" }
set { defaults.set(newValue, forKey: Keys.llmModel) } set { defaults.set(newValue, forKey: Keys.llmModel) }
} }

Binary file not shown.