ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

How to run headless mode ?

Open fire17 opened this issue 2 years ago • 5 comments
trafficstars

Can anyone please share how to start revChatGPT in headless mode , im running in wsl2 , followed the installation docs but havn't seen how to run in headless mode

id hope there's a flag somewhere for this and i wont have to manually edit playwrite installation to run headlessly thanks !

fire17 avatar Dec 14 '22 16:12 fire17

I'm trying to use

Xvfb :1 -screen 0 1024x768x24

but i still cant manage to use revChatGPT either the tool nor using it in python image image

fire17 avatar Dec 14 '22 16:12 fire17

What works for me is that I open a new GNU screen session using screen -S <name> , and inside the screen I just run xvfb-run python3 index.py, works like a charm.

Similarly,if you would like to use the CLI version of revChatGPT, then you can just run xvfb-run python3 -m revChatGPT.

skippyyy avatar Dec 14 '22 18:12 skippyyy

image __Secure-next-auth.session-token seems to be changing all the time, maybe thats the problem??

anyhow im still not able to run this, can you recommend how to reinstall everything from scratch maybe ? thanks for the quick response !! :D

fire17 avatar Dec 14 '22 18:12 fire17

It seems like the script does run with xvfb, the error you are seeing is related to the revChatGPT CLI, try and run it with --debug arg like it says so you can check what the error specifically is. Also, yes, the session-token is being invalidated quite frequently, maybe once or twice a day. At the moment, there is no implementation to automate login, so you have to import the cookies into the config.json file manually.

No worries :)

skippyyy avatar Dec 14 '22 18:12 skippyyy

Make sure you have Xvfb installed :

Xvfb :99 -ac 2>/dev/null & 
export DISPLAY=:99 

anribras avatar Dec 15 '22 02:12 anribras