Closed LuminarySage closed 12 months ago
Check if the edgegpt version is 0.11.2
It is indeed 0.11.2
what's your python version?
3.11.4
Maybe is python version problem, I'm using 3.9.16
Oh was this fixed? What was the problem?
no, I'm can work in python version 3.11.4, try running this simple code if you can
import asyncio, json
from EdgeGPT.EdgeGPT import Chatbot, ConversationStyle
async def main():
cookies = json.loads(open("./path/to/cookies.json", encoding="utf-8").read())
bot = await Chatbot.create(cookies=cookies)
response = await bot.ask(prompt="Hello world", conversation_style=ConversationStyle.creative, simplify_response=True)
print(json.dumps(response, indent=2))
await bot.close()
if __name__ == "__main__":
asyncio.run(main())
Run this in the python interpreter?
yes
This is what I got after running the snippet above
oh, you have to modify the location where you put cookies
In what file is the cookies path stored?
Oh wait I got what you meant
Similar error
API has error, waiting for fixes
My chatbot can working now, but I still can't reproduce this error.
Will try to start from the beginning with a new copy of the repo and report back
So I ran
pip install -r requirements.txt
, renamed.env.dev
to.env
and filled outDISCORD_BOT_TOKEN
, and pasted my cookies intocookies.json
but somehow it's still complaining that EdgeGPT module is missing?I can even see it under ib site-packages and I set the PATH variable to point to site-packages already too