CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Add enable/disable option for providers

Open AnonTester opened this issue 1 month ago • 0 comments

Describe the need of your request

I'm using the plugin with a local openai compatible provider and do not want any of my code or code parts to be sent to any external provider. It's been the second time now that after an update of the plugin, my selected provider was reset and and I only noticed because I got an error message pop up that code completion isn't allowed without auth token. The latest update changed the selected provider to Ollama (Local) from my previous Custom OpenAI setting.

Proposed solution

Add toggles in the settings to enable/disable the AI providers that one wants to use. This would reduce the provider selection in the sidebar chat window to only the enabled ones.

Checkboxes on this setting screen to enable each provider would do the job just fine: image

Additional context

Related to this issue is the reset of settings or selected provider in an update - which should not happen. If there are changes that prevent retention of the selection, then I suggest to disable ALL providers by default rather than risking sensitive code or questions to be sent to an external provider, potentially causing data protection issues.

Thank you very much for this plugin!

AnonTester avatar May 16 '24 01:05 AnonTester