Description
Describe the bug
When I try to use the prepare data tool for fine tuning I always get the following error that i'm not using a valid JSON file. I have even used a valid JSON validator which comes back as valid. I have a feeling this has to do with my environment more than anything.
from my understanding this tool accepts any data format, even JSON to convert to JSONL
I'm new to python so please excuse my lack of experience with the language.
I even installed it with just pip install openai
and still had no luck. along with this I tried using python with pyenv but still had no luck.
And again i'm new to programming so this is one of my first ever big reports, sorry if it's not in the right format if you will
To Reproduce
Latest version of python3 was installed using home brew with
brew install python
pip3 install openai
export OPENAI_API_KEY="<OPENAI_API_KEY>"
openai tools fine_tunes.prepare_data -f <LOCAL_FILE>
pip v23.0.1
Code snippets
user@user-MBP training_models % openai tools fine_tunes.prepare_data -f prompt_completion_pairs_manual.json
Analyzing...
ERROR in read_any_format validator: Your file `prompt_completion_pairs_manual.json` does not appear to be in valid JSON format. Please ensure your file is formatted as a valid JSON file.
Aborting...%
OS
macOS Ventura v13.0.1
Python version
Python 3.11.2
Library version
openai-0.27.1