Files
2026-07-13 12:22:33 +08:00

17 lines
492 B
Swift

import CodexBarCore
import Foundation
extension SettingsStore {
var chutesAPIKey: String {
get { self.configSnapshot.providerConfig(for: .chutes)?.sanitizedAPIKey ?? "" }
set {
self.updateProviderConfig(provider: .chutes) { entry in
entry.apiKey = self.normalizedConfigValue(newValue)
}
self.logSecretUpdate(provider: .chutes, field: "apiKey", value: newValue)
}
}
func ensureChutesAPIKeyLoaded() {}
}