Viewing a single comment thread. View all comments

SwitchOrganic t1_j3x9e5w wrote

While both are modified GPT3 models, Github Copilot is designed specifically to produce code while ChatGPT is a more general chat bot.

I could see them combining outputs, with ChatGPT generating a description/explanation while Copilot generates the code itself. ChatGPT can also parse a wider variety of inputs than Github Copilot. For example, you can ask ChatGPT "Can you find the error in this code?" while I'm pretty sure you can't ask Github Copilot that; but I haven't used Copilot since it left beta.

19

londons_explorer t1_j3xa6n2 wrote

> while I'm pretty sure you can't ask Github Copilot that

You can comment out the code, then write underneath:

"# Version above not working due to TypeError. Fixed version below:"

Then use Copilot completion. It will fix whatever the bug was.

31

SwitchOrganic t1_j3xah1u wrote

Oh interesting, that's a pretty clever solution.

Thanks for sharing!

12

Top_Lime1820 t1_j41sr9w wrote

Also you can ask CoPilot questions. Type your question in a comment after q:. Then create a new comment that starts with a: and it'll answer your question

# q: Which are the most popular R packages for plotting?

# a:

1

satireplusplus t1_j3xkvn2 wrote

What ChatGPT does really well is dialog and its useful for programming as well. You ask it to write a bash script, but it messes up a line. You tell it line number 9 didn't work and you ask it to fix it. It comes up with a fixed solution that runs. Really cool.

6

visarga t1_j414x9n wrote

Copilot is not prompt-tuned, chatGPT would understand new tasks much easier.

1