https://github.com/cookeem/chatgpt-stream
Real-time ChatGPT service, support GPT3/GPT4, support conversation and generate pictures from sentences, this is frontend
https://github.com/cookeem/chatgpt-stream
chatgpt gpt3-turbo gpt4 realtime vue websocket
Last synced: 11 months ago
JSON representation
Real-time ChatGPT service, support GPT3/GPT4, support conversation and generate pictures from sentences, this is frontend
- Host: GitHub
- URL: https://github.com/cookeem/chatgpt-stream
- Owner: cookeem
- License: mit
- Created: 2023-02-10T05:09:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T14:34:43.000Z (about 3 years ago)
- Last Synced: 2025-04-11T15:56:46.975Z (about 1 year ago)
- Topics: chatgpt, gpt3-turbo, gpt4, realtime, vue, websocket
- Language: Vue
- Homepage:
- Size: 2.1 MB
- Stars: 90
- Watchers: 2
- Forks: 38
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real-time ChatGPT service, support GPT3/GPT4, support conversation and generate pictures from sentences
- [English README](README.md)
- [中文 README](README_CN.md)
## About chatgpt-service and chatgpt-stream
- chatgpt-service: [https://github.com/cookeem/chatgpt-service](https://github.com/cookeem/chatgpt-service)
- chatgpt-service is a backend service, used to receive chatGPT messages in real time, and feed back to chatGPT-stream in real time through websocket
- chatgpt-stream: [https://github.com/cookeem/chatgpt-stream](https://github.com/cookeem/chatgpt-stream)
- chatgpt-stream is a front-end service that receives messages returned by chatGPT-service in real time through websocket
## gitee
- [https://gitee.com/cookeem/chatgpt-service](https://gitee.com/cookeem/chatgpt-service)
- [https://gitee.com/cookeem/chatgpt-stream](https://gitee.com/cookeem/chatgpt-stream)
## Demo
- Real-time conversation mode

- Generate picture patterns from sentences

## Quick start
```bash
# 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 apiKey, and change it to your openai.com API key
vi config.yaml
# your openai.com API key
apiKey: "xxxxxx"
# create pictures directory
mkdir -p assets
chown -R 1000:1000 assets
# 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
```
- Enter the question directly, it will call the ChatGPT interface to return the answer
- Enter the picture description after `/image`, it will call the DALL-E2 interface to automatically generate pictures through the picture description
## How to build
```bash
# 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
```