From 4c04c97341c5ea63c86ddc3dff975370d9c79585 Mon Sep 17 00:00:00 2001 From: Lava <34743145+CanglongCl@users.noreply.github.com> Date: Sun, 14 Jan 2024 17:46:00 -0800 Subject: [PATCH] rename openAIAPI with openAIAPIKey --- Easydict/NewApp/Configuration/Configuration.swift | 2 +- .../OpenAIService+ConfigurableService.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")