PowerLLM is a Python project that leverages the power of Large Language Models (LLMs) such as GPT-3.5 and GPT-4 to generate, test, and save Python functions. The project aims to provide a seamless experience for developers to create and refine Python functions using advanced AI models.
- Generate Python functions based on user prompts
- Test generated functions for correctness
- Save generated functions to files
- Handle errors and provide detailed error messages
- Allow users to specify custom coding standards
-
Installation: Ensure you have the required dependencies installed. You can install them using pip:
pip install -r requirements.txt
-
Running the Project: Execute the main script to start the development process:
python Sample_Coder.py
-
Generating Functions: Follow the prompts to generate and test Python functions. You can choose between single run, multiple runs, or continuous mode.
-
Saving Functions: After generating a function, you can save it to a file for future use.
-
Run the main script:
python Sample_Coder.py
-
Enter the initial prompt for the function you want to generate:
Enter the initial prompt for the development process: Create a function that adds two numbers
-
Choose the run mode and follow the instructions to generate and test the function.
If the generated function fails the test, the project will provide detailed error messages and allow you to refine the function based on the feedback.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.