Coder Social home page Coder Social logo

fjliss / ai-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youking-lib/ai-assistant

0.0 0.0 0.0 259 KB

Online AI assistant power by chatgpt, support multiple API_KEY for load balance

Home Page: https://ai.gonote.io

License: MIT License

Shell 0.17% JavaScript 2.26% TypeScript 21.34% CSS 76.22%

ai-assistant's Introduction

This project is developed based on other excellent projects on Github, including but not limited to:

Thanks to the selfless contributions of these developers.

Features

  • Support multiple OpenAPI keys by creating multiple ChatAPI clients for load balancing
  • Supports conversation
  • Supports switching of assistant role
  • Supports PC/Mobile devices
  • TODO: Persistent conversation
  • TODO: Supports login

Getting Started

If you want to experience it directly, you can visit ai-assistant demo. (If you find that it is unable to answer, it might be because the key balance is insufficient, you can raise an issue)

Deploy with pm2

prerequisites

  • nodejs
  • npm
  1. clone ai-assistant
git clone https://github.com/youking-lib/ai-assistant.git
npm i -g pnpm pm2
  1. add .env file
# SITE_GOOGLE_ANALYTICS=
# Supports multi API_KEY, split with ','
OPENAI_API_KEY=KEY_1,KEY_2
  1. deploy
sh deploy.sh

Deploy with docker

# TODO

Local

Same as deploy with pm2๏ผš

  • Clone this project.
  • Add the .env file (or .env.local for development purposes, which will not be committed).
  • Run the following script:
pnpm i
pnpm run dev

The server has started and is now running on localhost at port 3000.

ai-assistant's People

Contributors

youking-lib 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.