twinnydotdev / twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.
https://twinny.dev
MIT License
2.3k stars 126 forks source link

Option to save provider configuration to disk #250

Open jakern opened 1 month ago

jakern commented 1 month ago

Is your feature request related to a problem? Please describe. I have an unconventional use case in which my code server instances are always created with a different domain. I believe that the twinny provider manager is saving the edits to providers in the local storage. Every time I restart the code-server I lose my provider configuration.

Describe the solution you'd like It would be nice if there was an option for twinny to save the provider information to disk so that custom providers could be saved across sessions. This would be especially helpful to allow us to easily set up different default providers for other users.

Describe alternatives you've considered The alternative is that myself and other users I share this system with would need to manually edit the providers every time we restart our code server which can be several times per day.

If doesn't appear to be the case that if I force the domain to stay constant that the settings are still saved

Additional context The installation of the extension and settings remains across server restarts but the provider configuration does not

poisson-sg commented 3 days ago

I think it is an important feature to have. We have the same issue. In our case we use a vs code web IDE on vs code server online and without that feature, whoever uses twinny will reveal his/her API key to all users in the project.