This project is a simple web application that allows users to chat with an AI language model using the OpenAI API. Users can enter their OpenAI API key to start chatting and interacting with the AI model by submitting text prompts.
- API Key Submission: Users can enter their OpenAI API key to authenticate and start chatting with the AI model.
- Text Prompt Submission: Users can submit text prompts to the AI model and receive responses.
- Display Responses: The application displays both user prompts and AI responses in the chat interface.
To run the application locally, follow these steps:
- Clone the repository to your local machine.
- Open the project directory in your preferred code editor.
- Open the
index.html
file in a web browser to launch the application.
- Enter API Key: On the landing page, users should enter their OpenAI API key in the provided input field and click the "Submit" button.
- Chat Interface: Once the API key is submitted, the chat interface will appear.
- Submit Text Prompts: Users can enter text prompts in the input field and submit them by clicking the "Submit" button.
- View Responses: The application will display the user's prompts and the AI model's responses in the chat interface.
- HTML
- CSS
- JavaScript
- OpenAI API
- HTML Structure: The HTML file contains the structure of the application, including input fields, buttons, and chat display areas.
- CSS Styling: The CSS file provides styling for the application interface, including layout and design elements.
- JavaScript Functionality: The JavaScript file handles user interactions, API requests, and response handling.
- Improved error handling and validation for user input.
- Enhanced user interface with additional features such as user profiles and settings.
- Integration with other AI models and APIs for expanded functionality.
Feel free to contribute or provide feedback to improve this project!