I am currently exploring GitHub Copilot, and I am interested in using it programmatically, i.e., invoking it from code. As I understand, GitHub Copilot is an IDE plugin, which makes me wonder how it can be automated or controlled programmatically. We know Copilot uses OpenAI models behind the scene as an LLM.
GitHub Copilot does not provide API access to control it programmatically.
Clarification:
It's important to note that the plugin, once downloaded and installed, completes my code automatically. Copilot used the OpenAI models such as gpt-3.5 or gpt-4 behind the scene. I know very well the OpenAI chat or text completion models.So that's not my question
My question is how to capture the top three suggestions provided by Copilot in an automated fashion.
For example, for any given autocomplete task to Copilot, the task is to record the code suggestions and save them into a file.