This is a very basic and versatile coding assistant, which can analyse your current code files and help you create code files for your project.
The assistant works with ChatGPT. You need to set up a developer account with openai and define an API key to use your account.
- Copy the folder
assistant
to your project's root directory. - In lines 15 - 21 use the
system
variable, to give the LLM a general understanding of its role. - change the
prompt
string, defined in lines 46 – 48, to suit your current problem. - store your API key in an environmental variable
called
OPENAI_API_KEY
. It will get imported in line 4. - Add or remove relevant files in lines 10 - 12.
- Install Python, if it is not installed already.
- In the terminal, navigate to the assistant directory and type
python3 codingAssistant.py
If you want the assistant to build up a conversation, you can add its responses and your prompts to the corresponding lists in lines 50 to 58.