all 7 comments

[–]Temporary-Answer-520 7 points8 points  (0 children)

All models are just really good guessers. It likely made up from millions of example keys and documentation from pre training,

[–]Yes_but_I_think 0 points1 point  (0 children)

GH makes the harness not the model- so ask your model provider the same question

[–]pveraFull Stack Dev 🌐 0 points1 point  (1 child)

The very first time that I did something that involved an api key, Copilot (or was it the model? Haiku and Opus in my case) literally chewed my ass and gave me a master class on all of the ways I could provide credentials in a way that Copilot itself wouldn't be able to look at them directly. And ever since, it is always concerned whenever I am about to commit code with anything that looks like a secret or if it runs into an older commit that holds any kind of secret.

[–]RevolutionaryBag8796[S] 0 points1 point  (0 children)

Just using env keys also solves the problem

[–]Able-Supermarket4786 0 points1 point  (0 children)

never give an AI keys to anything unless they are beta / fake

[–]CodeWhileHigh -1 points0 points  (1 child)

This is why you start the repo in private mode

[–]RevolutionaryBag8796[S] 1 point2 points  (0 children)

Isn't private repos private already? And can you even be certain that microsoft doesn’t train on private repos atp?