16 lines · 492 B · Swift
RawDownload
import CodexBarCoreimport 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() {}}