-
Notifications
You must be signed in to change notification settings - Fork 1
ChatGPT Web (deprecated)
BobMaster edited this page Sep 18, 2023
·
1 revision
Get accessToken
from https://chat.openai.com/api/auth/session
sample compose.yaml
services:
app:
image: ghcr.io/hibobmaster/mattermost_bot:latest
container_name: mattermost_bot
restart: unless-stopped
env_file:
- .env
# volumes:
# use env file or config.json
# - ./config.json:/app/config.json
networks:
- mattermost_network
pandora:
image: pengzhile/pandora
container_name: pandora
restart: unless-stopped
environment:
- PANDORA_ACCESS_TOKEN=xxxxxxxxxxxxxx
- PANDORA_SERVER=0.0.0.0:8008
networks:
- mattermost_network
networks:
mattermost_network:
sample config.json
{
"server_url": "xxxx.xxxx.xxxxx",
"access_token": "xxxxxxxxxxxxxxxxxxxxxx",
"username": "@chatgpt",
"pandora_api_endpoint": "http://pandora:8008",
"pandora_api_model": "text-davinci-002-render-sha-mobile"
}
sample .env
SERVER_URL="xxxxx.xxxxxx.xxxxxxxxx"
ACCESS_TOKEN="xxxxxxxxxxxxxxxxx"
USERNAME="@chatgpt"
PANDORA_API_ENDPOINT="http://pandora:8008"
PANDORA_API_MODEL="text-davinci-002-render-sha-mobile"