Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.13 KB

README.md

File metadata and controls

55 lines (46 loc) · 1.13 KB

qchat

ChatGPT for QQ

支持联系上下文对话(记录以前对话),和普通问答

上下文信息10 minutes后遗忘,滚动记忆5次对话

使用方式

@机器人 提问 (此模式支持上下文)

群聊 普通问答

docker-compose.yaml

version: '3'
services:
  redis:
    image: redis:latest
    container_name: redis
    restart: always
    ports:
      - 6379:6379
    environment:
      TZ: Asia/Shanghai      
#    volumes:
#      - ./data:/data
#      - ./conf/redis.conf:/etc/redis/redis.conf
#      - ./logs:/logs
#    command: ["redis-server","/etc/redis/redis.conf"]  

  qchat:
    image: mirrors2/qchat:latest
    container_name: qchat
    depends_on:
      - redis
    restart: unless-stopped
    volumes:
      - ./config:/app/config
      - ./logs:/app/logs
    

配置文件

./config/plugins.yaml

plugins:
  chatgpt:
    authToken: sk-nidemiyuezsbdzsbdzsbdzsbd
    proxyUrl: 
    redisaddr: redis:6379
    redispassword: 

authToken获取地址 https://platform.openai.com/account/api-keys

使用docker-compose up -d启动容器,然后docker logs qchat查看日志并扫码登录