This is a text generation web application that utilizes OpenAI's GPT-4 API to generate natural language text based on user input.
- User-friendly interface
- Ability to generate natural language text based on user input
- Option to select the length of the generated text
- Option to choose from a range of GPT-4 models
- Integration with OpenAI's GPT-4 API
The application was built using the following technologies:
- HTML
- CSS
- JavaScript
- Vite
- OpenAI's GPT-4 API
To run this application on your local machine, you'll need to have Node.js installed. Once you have Node.js installed, follow these steps:
- Clone the repository
- Navigate to the project directory in your terminal
- Run npm install to install the dependencies
- Create a .env file in the root directory and add your OpenAI API key to it
- Run npm run dev to start the development server
- Open your browser and navigate to http://localhost:3000
To generate text using the application, simply enter a prompt in the input field and select the desired length of the generated text. Then click on the "Generate Text" button to generate the text.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Commit your changes
- Push your changes to your forked repository
- Submit a pull request Please make sure to include a detailed description of your changes in your pull request.
This project is licensed under the MIT license. See the LICENSE file for more information.
If you have any questions or comments about this project, please feel free to contact me at [email protected].