Local CHAT AI is a chat application that utilizes artificial intelligence to generate natural and helpful responses. The application is created by Trung Hieu.
Author - Trung Hieu๐ฎโโ
-
Clone the repository:
git clone https://github.com/salamander97/AI-Chat-BOT.git cd AI-Chat-BOT.git
OpenAI API Key: First, you need an API Key from OpenAI to use their services. Sign up for an account and obtain an API Key from the OpenAI Platform. ๐
๐ Register or log in to your account on the OpenAI Platform.
๐ช After logging in, navigate to the API Keys page.
๐ Copy your API Key from this page.
๐๏ธ Open the index.html file with your text editor.
Find the following code snippet:
const chatGPTKey = 'sk-xxxxxxx';
Replace the value of chatGPTKey with the API Key you copied from OpenAI:
const chatGPTKey = 'YOUR_API_KEY_HERE';
๐พ Save the main.js file after making changes.
๐ Open the index.html file in your web browser (you can drag the file into the browser or open it from the browser).
๐ The application will open in the browser, and you can start interacting with Local CHAT AI.
๐ฌ Type your message into the message input box.
๐ Press the "Send" button or hit Enter to send your message to the chatbot.
๐ The chatbot's responses will be displayed above, and the chat history will be updated.
๐ Ensure that you are connected to the Internet when using the application so that it can send requests to the OpenAI API.
๐ ๏ธ If there are issues, check your browser's console for any error messages.
๐ You can also check out the OpenAI Playground to test out the API and see the different parameters you can use.
Local CHAT AI is released under the MIT License. See the details in the LICENSE file.