Chatgpt wechat robot

clash

download clash linux 64 version executable program

download from subscribe url: url + '&flag=clash'

copy config str to ~/.config/clash/config.yaml

download mmdb to Country.mmdb ~/.config/clash/Country.mmdb

https://cdn.jsdelivr.net/gh/Dreamacro/maxmind-geoip@release/Country.mmdb

nohup ./clash &

export https_proxy=...

build whl

scp whl to remote server

poetry init a path

poetry shell

cp whl into current directory

pip install *.whl

exit

start service

source /root/.cache/pypoetry/virtualenvs/ask-robot-20230321-vUQxf0SK-py3.9/bin/activate && nohup ask &

chatgpt cache infer

https://github.com/TheR1D/shell_gpt/blob/main/sgpt/client.py

Back to top