Skip to content

Commit

Permalink
rename openAIAPI with openAIAPIKey
Browse files Browse the repository at this point in the history
  • Loading branch information
CanglongCl committed Jan 15, 2024
1 parent 0297aa1 commit 4c04c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Easydict/NewApp/Configuration/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extension Defaults.Keys {
// Service Configuration
extension Defaults.Keys {
// OPENAI
static let openAIAPI = Key<String?>("EZOpenAIAPIKey")
static let openAIAPIKey = Key<String?>("EZOpenAIAPIKey")
static let openAITranslation = Key<String?>("EZOpenAITranslationKey")
static let openAIDictionary = Key<String?>("EZOpenAIDictionaryKey")
static let openAISentence = Key<String?>("EZOpenAISentenceKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4c04c97

Please sign in to comment.