Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1023 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 1023 Bytes

codingAssistant

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.

setup

  1. Copy the folder assistant to your project's root directory.
  2. In lines 15 - 21 use the system variable, to give the LLM a general understanding of its role.
  3. change the prompt string, defined in lines 46 – 48, to suit your current problem.
  4. store your API key in an environmental variable called OPENAI_API_KEY. It will get imported in line 4.
  5. Add or remove relevant files in lines 10 - 12.
  6. Install Python, if it is not installed already.
  7. 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.