feat: multiple custom providers (#859)

* Initial changes to switch to multiple custom providers

* Change CredentialKey from enum to sealed class

* Changes in the form of settings, support for saving and other logic

* Add copy service settings logic

* Add service settings migration logic

* Fixed the error of working with passwords on the main thread, added api token cleanup for remote settings

* Check style fix

---------

Co-authored-by: a.iudin <a.iudin@vk.team>
This commit is contained in:
Aleksandr 2025-02-09 18:21:39 +03:00 committed by GitHub
parent 93c711d5da
commit 6461e1de79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 796 additions and 318 deletions

View file

@ -44,6 +44,7 @@ settingsConfigurable.service.codegpt.chatCompletionModel.comment=Choose a model
settingsConfigurable.service.codegpt.codeCompletionModel.comment=Choose a model tailored for code completion-related tasks.
settingsConfigurable.service.codegpt.enableCodeAssistant.comment=If checked, Code Assistant will suggest related code updates as you make changes.
settingsConfigurable.service.custom.openai.apiKey.comment=A secret value stored in the system's Keychain or KeePass, depending on your OS. This approach is recommended over storing the secret in the header as plain text.
settingsConfigurable.service.custom.openai.apiKey.provider.name=Custom provider name:
settingsConfigurable.service.openai.apiKey.comment=You can find the API key in your <a href="https://platform.openai.com/account/api-keys">User settings</a>.
settingsConfigurable.service.openai.customModel.label=Custom model:
settingsConfigurable.service.openai.organization.label=Organization: