Open DylanWaken opened 1 year ago
Your openai key has a \n, you can delete it and try again.
Problem elevated by changing line13 to:
with open("OPENAI_API_KEY.txt", "r", encoding="utf-8") as f:
os.environ["OPENAI_API_KEY"] = f.read().replace("\n", "")
It looks like an issue with file.read on linux as it reads the \n somehow, though my file is clearly only 1 line. But the modifications above fixed the issue thanks
Problem elevated by changing line13 to:
with open("OPENAI_API_KEY.txt", "r", encoding="utf-8") as f: os.environ["OPENAI_API_KEY"] = f.read().replace("\n", "")
It looks like an issue with file.read on linux as it reads the \n somehow, though my file is clearly only 1 line. But the modifications above fixed the issue thanks
Ok thank you, I will change these codes.
Log as follows
please fix this, thanks a lot