CodeGPT is a web-based tool built with HTML, CSS, and JavaScript that integrates with the Gen AI API to provide optimized JavaScript solutions based on your problem statements. It helps developers quickly get efficient code solutions directly in the browser without any setup or complex configurations.
- Optimized JavaScript Solutions: Get efficient and optimized JavaScript code for your problem statements.
- Simple Interface: Just enter your Gen AI API key and your problem description to get the solution.
- No Dependencies: Built using only HTML, CSS, and JavaScript, so you can run it directly in your browser.
- Instant Feedback: Get the most optimized solution in real-time.
- Input your Gen AI API key into the field.
- Type your JavaScript problem statement.
- Click the "Generate Solution" button.
- CodeGPT will fetch the most optimized JavaScript solution from Gen AI and display it on the screen.
-
Clone the repository:
git clone https://github.com/yourusername/CodeGPT.git cd CodeGPT
-
Open the
index.html
file in your browser. -
Enter your Gen AI API key and provide a problem statement. Then, click "Generate Solution" to receive an optimized JavaScript solution.
.
├── index.html # Main HTML file with the user interface
├── styles.css # CSS for styling the interface
├── script.js # JavaScript for handling API calls and UI interactions
└── README.md # Project documentation
-
Input Problem Statement
Example:
Write a function to check if a number is prime. -
Generated Output
Suggested Solution:function isPrime(num) { if (num <= 1) return false; for (let i = 2; i <= Math.sqrt(num); i++) { if (num % i === 0) return false; } return true; }
We welcome contributions! To contribute:
- Fork the repository.
- Make changes to the HTML, CSS, or JavaScript files.
- Submit a pull request with a detailed description of your changes.