Skip to content

Commit

Permalink
fix: validModels is empty even if defaultModels is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jul 6, 2024
1 parent 36e7c60 commit b2485c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/Swift/Service/OpenAI/LLMStreamService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class LLMStreamService: QueryService {
}

var validModelsKey: Defaults.Key<[String]> {
serviceDefaultsKey(.validModels, defaultValue: [""])
serviceDefaultsKey(.validModels, defaultValue: defaultModels)
}

var apiKey: String {
Expand Down

0 comments on commit b2485c3

Please sign in to comment.