Skip to content

Commit

Permalink
fix: update OpenAI models
Browse files Browse the repository at this point in the history
  • Loading branch information
phlpsong committed Feb 3, 2024
1 parent 97d933e commit cf22a27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Easydict/NewApp/Configuration/Configuration+Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ extension Defaults.Keys {
static let openAISentence = Key<String>("EZOpenAISentenceKey", default: "1")
static let openAIServiceUsageStatus = Key<String>("EZOpenAIServiceUsageStatusKey", default: "0")
static let openAIEndPoint = Key<String?>("EZOpenAIEndPointKey")
static let openAIModel = Key<String>("EZOpenAIModelKey", default: OpenAIModels.gpt3_5_turbo.rawValue)
static let openAIModel = Key<String>("EZOpenAIModelKey", default: OpenAIModels.gpt3_5_turbo_0125.rawValue)

// DEEPL
static let deepLAuth = Key<String?>("EZDeepLAuthKey")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ enum OpenAIModels: String, CaseIterable, Identifiable {
self
}

case gpt3_5_turbo = "gpt-3.5-turbo"
case gpt3_5_turbo_1106 = "gpt-3.5-turbo-1106"
case gpt4
case gpt4_32k = "gpt-4-32k"
case gpt3_5_turbo_0125 = "gpt-3.5-turbo-0125"
case gpt4_0125_preview = "gpt-4-0125-preview"
}

extension OpenAIModels: EnumLocalizedStringConvertible {
Expand Down

0 comments on commit cf22a27

Please sign in to comment.