Giter Site home page Giter Site logo

angular-chatbot-gpt's Introduction

OpenAI Chatbot UI

NOTE: This project, including this README, was generated by ChatGPT. For background details, see BACKGROUND.md

This project is an Angular-based user interface for an OpenAI-driven chatbot. The UI uses the OpenAI API to interact with the chatbot and get responses. The project also includes an Express proxy server to handle API requests.

Features

  • Angular with Bootstrap and FontAwesome for the UI
  • Model selection dropdown, grouped by type
  • Sliders for temperature and top_p values
  • Scrollable chat conversation history
  • Input box and submit button for user messages
  • Express proxy server for API calls
  • Error handling with Bootstrap alerts

Prerequisites

  • Node.js and npm installed
  • Angular CLI installed: npm install -g @angular/cli
  • An OpenAI API key

Installation

  1. Clone the repository:

     git clone https://NJLaPrell/angular-chatbot-gpt
    
  2. Navigate to the project folder:

     cd your-repository
    
  3. Install the required dependencies:

     npm install
    

Usage

  1. Set the OPENAI_API_KEY environment variable:

    • For Windows (Command Prompt):

       set OPENAI_API_KEY=your_api_key_here
      
    • For Windows (PowerShell):

       $env:OPENAI_API_KEY="your_api_key_here"
      
    • For macOS and Linux:

      export OPENAI_API_KEY=your_api_key_here
      
  2. Start the Express proxy server:

     node proxy.js
    
  3. In a separate terminal, start the Angular app using the proxy configuration:

     npm start
    
  4. Open a web browser and visit http://localhost:4200 to use the chatbot UI.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

angular-chatbot-gpt's People

Contributors

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