yufeikang / ai-cli

This CLI tool allows you to easily use chatGPT in the command line. You can chat with it, ask it questions, and get text translations. It also supports rendering Markdown in the terminal.
MIT License
135 stars 10 forks source link

Error when execute ai commands #14

Closed taiqn closed 1 year ago

taiqn commented 1 year ago

_Traceback (most recent call last): File "/Users/tai/Library/Python/3.9/bin/ai", line 5, in from ai_cli.cli import cli File "/Users/tai/Library/Python/3.9/lib/python/site-packages/ai_cli/cli.py", line 10, in from ai_cli.bot import Bot, get_bot File "/Users/tai/Library/Python/3.9/lib/python/site-packages/ai_cli/bot/init.py", line 12, in from EdgeGPT import Chatbot, ConversationStyle File "/Users/tai/Library/Python/3.9/lib/python/site-packages/EdgeGPT.py", line 953, in class Query: File "/Users/tai/Library/Python/3.9/lib/python/site-packages/EdgeGPT.py", line 962, in Query Cookie.import_data() File "/Users/tai/Library/Python/3.9/lib/python/site-packages/EdgeGPT.py", line 934, in import_data cls.current_filepath = cls.files()[cls.current_fileindex] IndexError: list index out of range

Hi, I encouter this error when running ai setting -e or other ai-commands. Hope you could help

Thanks Tai

yufeikang commented 1 year ago

This seems to be that the format of the cookies is incorrect.

Ref This: https://github.com/acheong08/EdgeGPT#authentication-required

taiqn commented 1 year ago

I'm now not able to set the path for bing_cookie

yufeikang commented 1 year ago

try this: pip3 install -U EdgeGPT