security: 移除硬编码 API Key,用户需自行配置
This commit is contained in:
parent
7d297ba1a4
commit
1aee169c68
@ -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.
Loading…
Reference in New Issue
Block a user