/chatgpt-stream

Real-time ChatGPT service, based on the latest gpt-3.5-turbo-0301 model, this is frontend

Primary LanguageVueMIT LicenseMIT

Real-time ChatGPT service, based on the latest gpt-3.5-turbo-0301 model

About chatgpt-service and chatgpt-stream

gitee

Demo

Quick start

# Pull source code
git clone https://github.com/cookeem/chatgpt-service.git
cd chatgpt-service

# ChatGPT's registration page: https://beta.openai.com/signup
# ChatGPT registration tutorial: https://www.cnblogs.com/damugua/p/16969508.html
# ChatGPT API key management page: https://beta.openai.com/account/api-keys

# Modify the config.yaml configuration file, modify the appKey, and change it to your openai.com API key
vi config.yaml
#  your openai.com API key
appKey: "xxxxxx"


# Start the service with docker-compose
docker-compose up -d

# Check service status
docker-compose ps   
     Name                    Command               State                  Ports                
-----------------------------------------------------------------------------------------------
chatgpt-service   /chatgpt-service/chatgpt-s ...   Up      0.0.0.0:59142->9000/tcp             
chatgpt-stream    /docker-entrypoint.sh ngin ...   Up      0.0.0.0:3000->80/tcp,:::3000->80/tcp


# To access the page, please ensure that your server can access the chatGPT API
# http://localhost:3000

How to build

# Note that this project needs to run the chatgpt-service backend service first
# .env.development is the configuration file for running tests
# .env.production is the formally built configuration file

# Pull build dependencies
npm install
# Test the project
npm run serve
# Compile the project
npm run build

# If ERR_OSSL_EVP_UNSUPPORTED error occurs, please use the following command to compile
export NODE_OPTIONS=--openssl-legacy-provider && npm run build