copilot-help.nvim icon indicating copy to clipboard operation
copilot-help.nvim copied to clipboard

Comment: Copilot Chat Prompt Contribution

Open B00TK1D opened this issue 2 years ago • 5 comments

I happened to stumble upon this repo as I'm currently in the process of doing something very similar. I've been analyzing Github's own Copilot plugin, and I extracted the prompts that it uses to create its Copilot chat functionality. Here's a list of all the prompts I extracted: https://github.com/B00TK1D/copilot-prompts. Feel free to use these as you'd like to improve the functionality of your own plugin.

B00TK1D avatar Jan 26 '24 21:01 B00TK1D

Hey @B00TK1D !

Thanks a lot for that, I'll consider adding it to the plugin

z0rzi avatar Jan 29 '24 22:01 z0rzi

I happened to stumble upon this repo as I'm currently in the process of doing something very similar. I've been analyzing Github's own Copilot plugin, and I extracted the prompts that it uses to create its Copilot chat functionality. Here's a list of all the prompts I extracted: https://github.com/B00TK1D/copilot-prompts. Feel free to use these as you'd like to improve the functionality of your own plugin.

@B00TK1D very cool research! are you also building a copilot chat plugin for neovim?

GitMurf avatar Feb 12 '24 14:02 GitMurf

@GitMurf Not a plugin - I'm actually working on a general purpose API for copilot. I have my code over at https://github.com/B00TK1D/copilot-api. Unfortunately it broke on February 1 because Github changed the API endpoints, but I'm hoping to get it back up in a week or so.

B00TK1D avatar Feb 12 '24 15:02 B00TK1D

Very cool, thank you for that! But I'm trying to avoid python dependencies.

For the API endpoint shift, I had the same issue, the fix is simple, you just need to replace the URI from https://copilot-proxy.githubusercontent.com/v1/chat/completions to https://api.githubcopilot.com/chat/completions

z0rzi avatar Feb 13 '24 12:02 z0rzi

that shift in api URI leads me to believe maybe they are finally getting ready to actually make the api more generally available and supported! We can hope at least ;) haha

GitMurf avatar Feb 13 '24 17:02 GitMurf