Skip to content

fac30sb/chatGPT-clone-Ali-Tajah-William

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

chatGPT-clone-Ali-Tajah-William

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.

Features

  • 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.

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the project directory in your preferred code editor.
  3. Open the index.html file in a web browser to launch the application.

Usage

  1. Enter API Key: On the landing page, users should enter their OpenAI API key in the provided input field and click the "Submit" button.
  2. Chat Interface: Once the API key is submitted, the chat interface will appear.
  3. Submit Text Prompts: Users can enter text prompts in the input field and submit them by clicking the "Submit" button.
  4. View Responses: The application will display the user's prompts and the AI model's responses in the chat interface.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • OpenAI API

Code Overview

  • 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.

Future Enhancements

  • 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.

Contributors

Feel free to contribute or provide feedback to improve this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •