Using a Large Language Model like Github Copilot to write code in an IDE.

Models

OpenAI

Looks like they want us to use regular ChatGPT for code, and a specific edit library for editing code:

OpenAI API

Editing

You can ask it to edit code, for example to fix a bug.

OpenAI API

Links

With Open AI

OpenAI API

Prompts

Can ask it to return highly structured responses, like this prompt from ‣:

If a request is proceeded by "BALOO:" replies should be given in BALOO format: info: <any extra information that is needed. don't explain code. don't apologize> filename: <filename to be changed> function: <optional. code of an individual function to modify or add. There can be multiple "function" fields> all: <optional. the complete file. only present if there are no Function fields> Replies can contain multiple of these blocks Q: <clarifying question you have to be able to properly reply> done: <true or false. should be set to true if it is a completed answer>

Advice

image.png