Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the possibility to Anonymize the Body content sent to AI providers #734

Open
sguisse opened this issue Oct 14, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@sguisse
Copy link

sguisse commented Oct 14, 2024

Describe the need of your request

It would be great to have a functionality which allow users to anonymize some part of the data (source files) sent to AI Providers.

Effectively, Companies don't want to send their code to a third party (even if protection is provided), so it is important for them that the code could not be associate with them.

And allow users to save sent body content in a local log file to be analyzed by security team.

Proposed solution

For the anonymization part, it could be done by adding a configuration table in the plugin settings.
This table contains 2 columns

  • one with a regexp to identify the pattern to anonymize and a
  • second with the action to do (shuffle, random, specific text)

image

Here is the link to the code I have started to do (branch feat/anonymization)

Additional context

To simplify the implementation, it would be great to have a centralized method in CodeGPT which is responsible to call the external AI Provider, Like that we could do the Anonymization and log in a single place ;-)

@sguisse sguisse added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant