EdgeGPT icon indicating copy to clipboard operation
EdgeGPT copied to clipboard

Environment variable COOKIE_FILE doesn't work

Open xxr0ss opened this issue 3 years ago • 3 comments

I already set the COOKIE_FILE in path when I starts edgeGPT without additional args (--cookie-file)

PS> $env:COOKIE_FILE="$env:USERPROFILE\cookie.json" 
PS> python -m EdgeGPT

        EdgeGPT - A demo of reverse engineering the Bing GPT chatbot
        Repo: github.com/acheong08/EdgeGPT
        By: Antonio Cheong

        !help for help

        Type !exit to exit

usage: EdgeGPT.py [-h] [--enter-once] [--no-stream] [--rich] [--style {creative,balanced,precise}]      
                  --cookie-file COOKIE_FILE
EdgeGPT.py: error: the following arguments are required: --cookie-file

I got the following error:

EdgeGPT.py: error: the following arguments are required: --cookie-file

xxr0ss avatar Mar 23 '23 08:03 xxr0ss

python3 -m EdgeGPT --cookie-file "/mnt/disk/cookies6.json"

try that

joyspce avatar Mar 23 '23 09:03 joyspce

Thanks for your reply @joyspce. I know --cookie-file works well, but I prefer setting COOKIE_FILE environment variable so that I do not need to type additional arguments every time. I've opened https://github.com/acheong08/EdgeGPT/pull/185, it should fix this.

xxr0ss avatar Mar 23 '23 09:03 xxr0ss

https://github.com/acheong08/EdgeGPT/releases/tag/0.1.4

acheong08 avatar Mar 23 '23 10:03 acheong08