promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.11k stars 232 forks source link

with open(bpe_filename, "r", encoding="utf-8") as f: TypeError: expected str, bytes or os.PathLike object, not NoneType #48

Open badalgupta19 opened 1 year ago

badalgupta19 commented 1 year ago

Facing this error, from the opensai_model.py file. This error sometimes comes and sometimes everything runs smooth

eren23 commented 1 year ago

It happens when you usually pass in a None type to a function when it's trying to read a file. Maybe bpe_filename is not always defined, you forgot to run the cell maybe. These are my initial thoughts though.

escesare commented 1 year ago

I think my PR here resolves this issue