-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve Defaults.Key (#599)
* refactor: replace const key with enum StoredKey * perf: remove unused code * refactor: improve Defaults.Key * refactor: improve TextEditorCell, use ServiceConfigurationPickerCell to show model * perf: disable user to edit built-in supported models * refactor: improve StreamConfigurationView, remove viewModel * fix: setup subscribers when init, post update notification if model changes * perf: set defaultModels for OpenAI, Gemini and Built-in service * refactor: rename enum OpenAIModel and GeminiModel, update gpt3_5_turbo to gpt_3_5_turbo * fix: due to service memory leaks, multiple notifications are posted * fix: if main window dealloc, we need to setup subscribers again * fix: improve Gemini error message for empty model * fix: replace validation viewModel @StateObject with @ObservedObject * refactor: improve Gemini translate() * fix: Gemini and Built-in service cannot validate * fix: show different api key placeholders * fix: remove unused ObservableObject * style: format code * chore: update SwiftFormat to 0.54 * style: replace override public with public override * fix: validModels is empty even if defaultModels is set
- Loading branch information
Showing
52 changed files
with
888 additions
and
1,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.