Giter VIP home page Giter VIP logo

castorpollux44 / azure-chatgpt-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hddevteam/azure-chatgpt-demo

0.0 0.0 0.0 3.44 MB

A fascinating demo website built with Node.js and Azure OpenAI gpt-35-turbo/gpt4 model. This project serves as a great starting point for developers who are interested in developing chatbot applications using JavaScript and Azure OpenAI API.

License: MIT License

JavaScript 81.41% CSS 12.02% HTML 6.57%

azure-chatgpt-demo's Introduction

๐Ÿค– Powerful chatGPT for Azure OpenAI GPT model

Welcome to Azure chatGPT demo, a fascinating chatGPT website built with Node.js and Azure OpenAI gpt-35-turbo (version 0301)/gpt4 model. This project serves as a great starting point for developers who are interested in developing chatbot applications using JavaScript and Azure OpenAI API.

๐ŸŒŸ Features

  • You can now fully control messages in your current conversation. You have the ability to delete, hide, or unhide any message in the conversation. This means you can control the AI's memory for the conversation, allowing you to get more out of your conversations.๐Ÿ’ซ Dekstop Screenshot

  • Summarize current conversation and save it to markdown file ๐Ÿ“ Export to markdown file

  • Manage AI profiles and support to Create new AI profile by using GPT-4 model in seconds ๐Ÿค–! Manage AI profile

  • Support for Azure Text-to-Speech engine ๐Ÿ“ข

  • Support generating image from text by using DALL-E API ๐Ÿ–ผ๏ธ

  • Support Speech-to-Text by using Azure Speech-to-Text engine ๐ŸŽ™๏ธ

  • Display actor avatar and name in header when selected

  • Support for loading system prompt from remote URL

  • Message formatting preservation

  • Token counter

  • Mobile and tablet compatibility Optimize for mobile

๐Ÿš€ Getting Started

Prerequisites

  • Node.js installed on your local machine
  • An API key and endpoint from Azure OpenAI portal

Installation

  1. Clone the project to your local machine

  2. Create a .env file in the root folder of the project

  3. Add your API key and endpoint to the .env file using the following format:

    API_KEY=yourgpt35apikey
    API_URL=https://$yourendpoint
    GPT_4_API_KEY=yourgpt4apikey
    GPT_4_API_URL=https://$yourgpt4endpoint
    
  4. (Optional) Add extra features with PROMPT_REPO_URLS and AZURE_TTS:

    • PROMPT_REPO_URLS is a JSON object containing the user name and the URL of the prompt file:

      PROMPT_REPO_URLS={"user1":"user1prompts.json", "user2":"user2prompts.json","user3":"user3prompts.json"}
      

      For the user1prompts.json content format, check the example file at ./public/prompts.json.

    • AZURE_TTS is a JSON object containing the subscription key and the endpoint of the Azure Text-to-Speech service:

      AZURE_TTS={"subscriptionKey":"your subscription key","endpoint":"your endpoint"}
      
    • API_DALLE_URL is the endpoint of the DALL-E API service:

      API_DALLE_URL=yourdalleapiurl
      
  5. Install the necessary packages:

    npm install
    
  6. Start the server:

    npm start
    
  7. Open your browser and visit http://localhost:3000 to enjoy the chatGPT for your own!

Now you're all set to explore and develop your chatbot application using JavaScript and Azure OpenAI API. Happy coding! ๐ŸŽ‰

azure-chatgpt-demo's People

Contributors

hddevteam avatar king-ning306 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.