GithubHelp home page GithubHelp logo

salamander97 / ai-chat-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 138 KB

Local CHAT AI is a chat application that utilizes artificial intelligence to generate natural and helpful responses.

HTML 10.20% JavaScript 49.51% CSS 40.29%

ai-chat-bot's Introduction

Local CHAT AI

Introduction

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๐Ÿ‘ฎโ€โ™‚

Usage Guide

1. Installation

  • Clone the repository:

       git clone https://github.com/salamander97/AI-Chat-BOT.git
    
       cd AI-Chat-BOT.git
    

Local CHAT AI User Guide

Prerequisites

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. ๐Ÿš€

Step 1: Obtain API Key from OpenAI

๐Ÿ“ 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.

Step 2: Add API Key to the Application

๐Ÿ–Š๏ธ 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';

Step 3: Launch the Application

๐Ÿ’พ 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.

Step 4: Use 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.

Note:

๐ŸŒ 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.

License

Local CHAT AI is released under the MIT License. See the details in the LICENSE file.

ai-chat-bot's People

Contributors

salamander97 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.