diff --git a/Easydict/NewApp/Configuration/Configuration.swift b/Easydict/NewApp/Configuration/Configuration.swift index 679c02735..03a0932ad 100644 --- a/Easydict/NewApp/Configuration/Configuration.swift +++ b/Easydict/NewApp/Configuration/Configuration.swift @@ -58,7 +58,7 @@ extension Defaults.Keys { // Service Configuration extension Defaults.Keys { // OPENAI - static let openAIAPI = Key("EZOpenAIAPIKey") + static let openAIAPIKey = Key("EZOpenAIAPIKey") static let openAITranslation = Key("EZOpenAITranslationKey") static let openAIDictionary = Key("EZOpenAIDictionaryKey") static let openAISentence = Key("EZOpenAISentenceKey") diff --git a/Easydict/NewApp/Utility/Extensions/QueryService+ConfigurableService/OpenAIService+ConfigurableService.swift b/Easydict/NewApp/Utility/Extensions/QueryService+ConfigurableService/OpenAIService+ConfigurableService.swift index 2750da04b..960cada25 100644 --- a/Easydict/NewApp/Utility/Extensions/QueryService+ConfigurableService/OpenAIService+ConfigurableService.swift +++ b/Easydict/NewApp/Utility/Extensions/QueryService+ConfigurableService/OpenAIService+ConfigurableService.swift @@ -15,7 +15,7 @@ extension EZOpenAIService: ConfigurableService { ServiceStringConfigurationSection( textFieldTitleKey: "service.configuration.openai.api_key.header", headerTitleKey: "service.configuration.openai.api_key.title", - key: .openAIAPI, + key: .openAIAPIKey, prompt: "service.configuration.openai.api_key.prompt", footer: { Text("service.configuration.openai.api_key.footer")