ChatGPT
ChatGPT copied to clipboard
How to run headless mode ?
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 !
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

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.
__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
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 :)
Make sure you have Xvfb installed :
Xvfb :99 -ac 2>/dev/null &
export DISPLAY=:99