https://github.com/amruthlp12/chatgpt-chatbot-react-api
Vite React ChatGPT App integrates OpenAI's ChatGPT model into React using Vite, offering users a real-time chat interface. Ideal for developers exploring conversational AI in React, with opportunities for contributions.
https://github.com/amruthlp12/chatgpt-chatbot-react-api
api chatbot chatgpt conversational-ai natural-language-processing react real-time-communication user-interface vite web-development
Last synced: 10 months ago
JSON representation
Vite React ChatGPT App integrates OpenAI's ChatGPT model into React using Vite, offering users a real-time chat interface. Ideal for developers exploring conversational AI in React, with opportunities for contributions.
- Host: GitHub
- URL: https://github.com/amruthlp12/chatgpt-chatbot-react-api
- Owner: AmruthLP12
- Created: 2024-02-24T04:46:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T03:14:57.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T16:42:30.047Z (12 months ago)
- Topics: api, chatbot, chatgpt, conversational-ai, natural-language-processing, react, real-time-communication, user-interface, vite, web-development
- Language: JavaScript
- Homepage: https://chatgpt-chatbot-react-api.vercel.app
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**React ChatGPT App**
This is a simple React application that utilizes the ChatGPT model from OpenAI to create a chat interface where users can converse with ChatGPT.
**Features**
**Chat Interface:** Users can send messages and receive responses from ChatGPT.
**Real-time Typing Indicator:** A typing indicator is displayed when ChatGPT is processing a response.
**Message History:** Previous messages are displayed in the chat window for reference.
**Prerequisites**
Node.js installed on your machine
OpenAI API key (required for accessing the ChatGPT model)
**Installation**
Clone the repository to your local machine:
git clone [https://github.com/AmruthGowda91200/chatgpt-chatbot-react-api.git](https://github.com/AmruthGowda91200/chatgpt-chatbot-react-api)
Navigate to the project directory:
cd react-chatgpt-app
Install dependencies:
npm install
Obtain an API key from OpenAI and replace chatGPT_API in App.js with your API key.
**Usage**
Start the development server:
npm start
Open your browser and navigate to [http://localhost:5173](http://localhost:5173)to view the application.
Type messages in the input field and press Enter to send them to ChatGPT.
ChatGPT will process your message and respond accordingly.
**Customization**
You can customize the chat interface, styling, and message processing logic according to your requirements. Feel free to modify the App.js file and associated components to add additional features or enhance the existing ones.
**Credits**
This application utilizes the following technologies and libraries:
Vite
React
Chat UI Kit React
OpenAI API
**License**
This project is licensed under the MIT License - see the LICENSE file for details.